manpath Command Examples in Linux

manpath command attempts to determine the path to manual pages. It checks $MANPATH first; if that is not set, consult /etc/man.conf, user environment variables, and the current working directory. The manpath command is a symbolic link to man and is equivalent to ‘man –path’. Most of the options are ignored for manpath.

manpath Command Examples

1. To see the manual for a command:

# manpath command
# manpath ls 

2. To Specify the configuration file to use; the default is /etc/manpath.config:

# manpath -C  config_file 

3. To Specify the list of directories to search for man pages:

# manpath -M path 

4. To Specify which pager to use:

# manpath -P pager 

5. To specify which browser to use on HTML files:

# manpath -B 

6. To Specify a commanpathd that renders HTML files as text:

# manpath -H 

7. To List is a colon separated list of manpathual sections to search:

# manpath -S section_list 

8. To display all the manpathual pages that match name:

# manpath -a 

9. To Reformat the source manpath page, even when an up-to-date cat page exists:

# manpath -c 

10. To don’t actually display the manpath pages, but do print gobs of debugging information:

# manpath -d 

11. To display and print debugging info:

# manpath -D 

12. To display in whatis format:

# manpath -f 

13. Just to format and not to display:

# manpath -F
# manpath --preformat 

14. To print a help message and exit:

# manpath -h 

15. To search for specified key in all manpath pages:

# manpath -K 

16. To specify an alternate set o manpath pages:

# manpath -m system 

17. To Specify the sequence of pre-processors to run before nroff or troff:

# manpath -p string 

18. To use /usr/bin/groff -Tps -manpathdoc to format the manpathual page:

# manpath -t 
Related Post