how to use man command with its examples

  • About man : To format and display the on-line manual pages
  • It comes from “man-1.6f” package.
  • Configuration Files:
  • Path: /usr/bin/man

Examples:

1. To see the manual for a command

$ man command
$ man ls 

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

$ man -C  config_file

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

$ man -M path

4. To Specify which pager to use

$ man -P pager

 5. To specify  which  browser to use on HTML files

$ man -B

 6. To Specify a command that renders HTML files as text

$ man -H

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

$ man -S section_list

8. To display all the manual pages that match name

$ man -a

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

$ man -c

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

$ man -d

 11. To display and print debugging info

$ man -D

 12. To display in whatis format

$ man -f

 13. Just to format and not to display

$ man -F
$ man –preformat 

14. To print a help message and exit

$ man -h

15. To search for specified key in all man pages

$ man -K

16. To specify an alternate set o man pages

$ man -m system

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

$ man -p string

18. To use /usr/bin/groff -Tps -mandoc to format the manual page

$ man -t

 

Leave a Reply

Your email address will not be published. Required fields are marked *