Wednesday, October 29, 2014

Adding directories to man path

To add a custom path to man(say you compiled an application in /usr/local/), all you have to do is edit the following file:
/etc/man.config
And edit the following:
MANPATH /usr/local/ha/share/man
To update the database immediately:
makewhatis -v  /usr/local/ha/share/man

No comments:

Post a Comment