The
man program typically uses the
less pager program to view it's output. You can read the less manual page to discover the keys, or simply press
h when viewing something in less to get quick help.
I said
typically, because man actually checks the value of the environment variable
PAGER, and if it is set, uses that as the program to view pages. A simpler, and older pager is called
more which has rather minimal functionality. I don't recommend using it instead of less because it is not as useful, but just as an example of how to set a different pager program, you might do this:
Code:
export PAGER=more
man ls
...and that will use more to page through the file. It happens that q also quits from more. The name less is a play on the name more. It might not look like much, by less is really quite a nice program. Browse the help and discover some nice features.