🐧 Linux / Shell Scripting
Beginner
How do you display the manual for a command?
Answer
Use the man command followed by the command name, e.g., man ls. Man pages are divided into numbered sections: section 1 is user commands, section 2 is system calls, section 5 is file formats, section 8 is admin commands. Specify a section with man 5 passwd. Within the man pager, use arrow keys or j/k to scroll, / to search, and q to quit. man -k keyword (or apropos keyword) searches all man page descriptions. --help or -h flags on most commands also give quick usage summaries.
Previous
What is the difference between absolute and relative paths?
Next
What is the root directory in Linux?