Where did I set that most displays my man pages?

James Michael Fultz croooow at gmail.com
Wed Oct 28 08:43:33 UTC 2009


* Detlef Lechner <Detlef.Lechner at gmx.net> [2009-10-28 08:26 +0100]:
> Where did I set in Ubuntu 8.04.3 that the pager "most" will display my
> man pages?

Unless overridden by $MANPAGER or $PAGER, I think that man on Ubuntu and
Debian defaults to using '/usr/bin/pager' which is a symlink managed by
the alternatives system.  Try the following:

$ update-alternatives --display pager

And if you wish to change it:

$ sudo update-alternatives --config pager

See update-alternatives(8) for more details.

> I forgot in what file I added a line of text with the string "most".
> I run '~$ rgrep 'PAGER=' /home/detlef/ 2>/dev/null' but could not find
> 'most' in the output.
> ~/.profile does not include it.
> ~(.bashrc does not include it either.

I'm thinking it's the alternatives system causing most to be your
default pager but be sure whether $PAGER is even set.  Try the following
from a terminal or console:

$ echo $PAGER

Also $MANPAGER takes precedent over $PAGER if set.




More information about the ubuntu-users mailing list