How to find the pager used by man?
How to find the pager used by man comman开发者_运维技巧d.
From man man
option(snippet below) -P to change pager and default pager is /usr/bin/less
-P pager Specify which pager to use. This option overrides the MANPAGER environment variable, which in turn overrides the PAGER variable. By default, man uses /usr/bin/less -is.
Alternately,
echo $PAGER
since the environment variable may have been changed unbeknownst to man man
.
精彩评论