Name
man
Synopsis
man [options
] [[section
]subjects
]
Display information from the online reference manual. Each
subject is usually the name of a command from
Section 1 of the online manual, unless you specify an optional
section from 1 to 8. If you don’t specify a
subject, you must supply either a keyword
(for -k
) or a file (for -f
). No
options except -M
can be used with
-k
or -f
. The MANPATH
environment variable defines the directories in which man searches for information (default is
/usr/share/man). PAGER
defines how output is sent to the screen. Note: in Solaris,
section must be preceded by
-s
. GNU/Linux and Mac OS X use the same man program.
Options
-
-a
Show all pages matching subject.
-
-d
Debug; evaluate the man command and print debugging information, but don’t execute.
-
-f
files
Display a one-line summary of one or more reference files. Same as whatis.
-
-k
keywords
Display any header line that contains one of the specified keywords. Same as apropos.
-
-M
path
Search for online descriptions in directory path instead of default directory.
-M
overrides MANPATH.-
-t
Format the manpages with troff.
Solaris Options
-
-
Pipe output through cat instead of more -s.
-
-F
Search MANPATH directories, not
windex
database.-
-l
Like
-a
, but list only the pages.-
-r
Reformat but don’t display manpage. Same as
man - -t
.-
-s
section
Specify the section of the manpage to search in. Required for anything that isn’t a command.
-
-T
mac
Display information using macro package mac instead of tmac.an (the man macros). ...
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.