From Mac Guides

Jump to: navigation, search

man is a Terminal command used to display documentation (or manual pages) for other Terminal commands.


To show documentation for the cd command

 man cd

To search all man pages for occurrences of "process ID"

 man -K "process ID"

Note that when an occurrence is found, the man page's file path will be displayed, with a "ynq" (yes/no/quit) prompt (asking if you wish to display the man page for that occurrence).

Man Page Excerpt

man formats and displays the on-line manual pages. If you specify section, man only looks in that section of the manual. name is normally the name of the manual page, which is typically the name of a command, function, or file. However, if name contains a slash (/) then man interprets it as a file specification, so that you can do man ./foo.5 or even man /cd/foo/bar.1.gz.