How to set MANPATH without overriding defaults?

Posted by balki on Ask Ubuntu See other posts from Ask Ubuntu or by balki
Published on 2012-10-07T15:46:15Z Indexed on 2012/10/07 15:49 UTC
Read the original article Hit count: 253

Filed under:

I have added extra directories to $PATH by exporting PATH=/my/dirs:$PATH But I am not sure if I should do the same to MANPATH. Because default MANPATH is empty yet man command works. I found a command called manpath and its manual says If $MANPATH is set, manpath will simply display its contents and issue a warning.. Does this mean setting MANPATH is not the right way to add directories for man command to search for manual pages?

© Ask Ubuntu or respective owner

Related posts about command-line