Penguin
Note: You are viewing an old revision of this page. View the current version.

Not happy with your default man viewer?

Then change it! This is easily done by setting the 'PAGER' environment variable.

I am using Debian Etch which by default uses 'less' as the man viewer. But say I want to use 'more' to view man pages instead.

  • export PAGER="/path/to/more"

Now type 'man ls' for example, and notice the man viewer has changed :)

If you regret the change simply do:

  • unset PAGER

to revert back to the default man page viewer.

Remember, to make changes to an environment variable permanent you will have to add the export command to your shell initialization script.

You can Search a man Document

Note: This only applies when using 'less' to view man pages.

When viewing a man for a particular application, you can search for a keyword you are after by typing:

  • /<search>

The man will scroll down to the first match, and any matches will be highlighted!

To search backwards:

  • ?<search>