less
is more
If the output of a program takes more than one page, you run it through more
. Why not use less
instead? less
is exactly like more
, except that you can scroll backwards. However, man
uses more
to display man pages, how can we get it to use less
instead?
The solution is simple, in your .shrc or .bashrc, add the following:
export PAGER="less -Fc"
alias more="less -Fc"
Now man
(and any other program that uses more
) should use less
instead.