Back to the command reference

man

HelpBeginner In simulator In real Linux

Show a command's manual page

Name: man = manual

You can practise it right away in the simulator, and use it in real Linux mode too.

Description

man shows reference manuals for commands, system calls, file formats and more. Pages are grouped into sections: 1 user commands, 2 system calls, 3 library functions, 5 file formats, 8 administration, and so on; use the number to pick one, e.g. man 5 passwd.

Pages have parts like NAME, SYNOPSIS, DESCRIPTION, OPTIONS, EXAMPLES and SEE ALSO and are shown in less: q quits, / searches.

Syntax

man [SECTION] NAME

Common options

SECTIONManual section, e.g. 1 user commands, 5 file formats
-kSearch manuals by keyword (like apropos)
-fOne-line descriptions (as whatis)
-aShow every page with this name in turn (passwd in sections 1 and 5)
-wOnly where the page file is

Examples

  • $ man ls

    Read the ls manual (press q to quit)

    Explain
  • $ man 5 passwd

    Format of the /etc/passwd file

    Explain

Related