commands

man — read manual pages

man-db manual reader. Requires installed manual pages; a section limits the search to a class of documentation. Pager settings determine interaction. Section 1 is commands and section 5 is file formats.

Formal Syntax & Structure

linux syntaxlinux
man [OPTION]... [[SECTION] PAGE ...]

Parameters & Attributes

NameTypeDescription
-koptionSearch indexed names/descriptions like apropos
-foptionShort descriptions like whatis
SECTIONoperandManual section
PAGEoperandPage name

Return Value

text and exit status

Displays selected pages using a pager; nonzero on errors such as missing pages.

Working Example

Example Snippetlinux
man 1 ls
Linux Reference