man - Unix, Linux Command

man it is the interface used to view the system's reference manuals.
 man [-C file] [-d] [-D] [--warnings[=warnings]] [-R encoding] [-L locale] [-m system[,...]] [-M path] [-S list] [-e extension] 
[-i|-I] [--regex|--wildcard] [--names-only] [-a] [-u] [--no-subpages] [-P pager] [-r prompt] [-7] [-E encoding] [--no-hyphenation] 
[--no-justification] [-p string] [-t] [-T[device]] [-H[browser]] [-X[dpi]] [-Z] [[section] page ...] ... 
 man -k [apropos options] regexp ...
 man -K [-w|-W] [-S list] [-i|-I] [--regex] [section] term ...
 man -f [whatis options] page ...
 man -l [-C file] [-d] [-D] [--warnings[=warnings]] [-R encoding] [-L locale] [-P pager] [-r prompt] [-7] [-E encoding] [-p string] [-t] [-T[device]] [-H[browser]] [-X[dpi]] [-Z] file ...
 man -w|-W [-C file] [-d] [-D] page ...
 man -c [-C file] [-d] [-D] page ...
 man [-hV] 
 man [-C file] [-d] [-D] [--warnings[=warnings]] [-R encoding] [-L locale] [-m system[,...]] [-M path] [-S list] [-e extension] 
[-i|-I] [--regex|--wildcard] [--names-only] [-a] [-u] [--no-subpages] [-P pager] [-r prompt] [-7] [-E encoding] [--no-hyphenation] 
[--no-justification] [-p string] [-t] [-T[device]] [-H[browser]] [-X[dpi]] [-Z] [[section] page ...] ... 
 man -k [apropos options] regexp ...
 man -K [-w|-W] [-S list] [-i|-I] [--regex] [section] term ...
 man -f [whatis options] page ...
 man -l [-C file] [-d] [-D] [--warnings[=warnings]] [-R encoding] [-L locale] [-P pager] [-r prompt] [-7] [-E encoding] [-p string] [-t] [-T[device]] [-H[browser]] [-X[dpi]] [-Z] file ...
man is the system's manual pager. Each page argument given to man is normally the name of a program, utility or function. The manual page associated with each of these arguments is then found and displayed. A section, if provided, will direct man to look only in that section of the manual. The default action is to search in all of the available sections, following a pre-defined order and to show only the first page found, even if page exists in several sections.
Example-1:
To Display the manual page for the item (program) ls :
$ man ls
output:
To Display, in succession, all of the available intro manual pages contained within the manual. It is possible to quit between successive displays or skip any of them:
$ man -a intro
output:
# man -a intro--Man-- next: intro(8) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]--Man-- next: intro(3) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]--Man-- next: intro(2) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]--Man-- next: intro(5) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]--Man-- next: intro(4) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]--Man-- next: intro(6) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]--Man-- next: intro(7) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
to get to next page press q to quit.
Example-3:
Format the manual page referenced by `alias', usually a shell manual page, into the default troff or groff format and pipe it to the printer named ps :
$ man -t alias | lpr -Pps
output:
command content will be sent to printer.
Example-4:
output:
# man -k printfprintf (1)           - format and print data
Example-5:
To Lookup the manual pages referenced by mkdir and print out the short descriptions of any found. Equivalent to whatis -r mkdir.
$ man -f mkdir
output:
# man -f mkdirmkdir (1)            - make directories
Example-6:
To invoke the subcommands themselves. For example :
$ man -aw git diff
output:
/usr/share/man/man1/git-diff.1.gz
To disable this behaviour, use the --no-subpages option.

$ man -aw --no-subpages git diff
/usr/share/man/man1/git.1.gz
/usr/share/man/man3/Git.3pm.gz
/usr/share/man/man1/diff.1.gz


    129 Lectures 
     23 hours 

 Eduonix Learning Solutions

    5 Lectures 
     4.5 hours 

 Frahaan Hussain

    35 Lectures 
     2 hours 

 Pradeep D

    41 Lectures 
     2.5 hours 

 Musab Zayadneh

    46 Lectures 
     4 hours 

 GUHARAJANM

    6 Lectures 
     4 hours 

 Uplatz
 Print
 Add Notes
 Bookmark this page