man
Format and display the on-line manual pages
Overview
Displays the manual page for a given command. The manual pages are a standard source of documentation for Linux commands and utilities.
Syntax
man [OPTION]... [SECTION] PAGE...Common Options
[SECTION] NAMESpecify the section of the manual and the name of the page (e.g., `man 1 ls`, `man 5 passwd`). Common sections: 1 (commands), 2 (system calls), 3 (library calls), 4 (special files), 5 (file formats), 6 (games), 7 (misc), 8 (admin commands).
-k KEYWORD, --apropos=KEYWORDSearch for KEYWORD in all manual page names and descriptions (same as `apropos`).
-f COMMAND, --whatis=COMMANDDisplay a short description from the manual page, if available (same as `whatis`).
-w, --where, --pathPrint the location(s) of the manual page(s) instead of displaying them.
-a, --allDisplay all matching manual pages in sequence, not just the first one.
-K STRINGSearch for STRING in the full text of all manual pages (can be slow).
Examples
Displays the manual page for the `ls` command.
Displays the manual page for the `passwd` file format from section 5.
Searches for "printf" in manual page names and descriptions (like `apropos printf`).
Displays a short "whatis" description of `ls`.
Prints the paths to all manual pages related to `cron`.
Displays the manual page for the `man` command itself.