1. Getting Help Without the Internet

Linux has three built-in help systems, listed from quickest to most detailed:

Method Command Detail Level
Inline help command --help or command -h Quick summary
Manual pages man command Full reference
Info pages info command Most detailed

Method 1 — -help / h

ls --help
passwd --help

Method 2 — man (Manual Pages)

man command_name
man 5 passwd       # open a specific section
man -k "keyword"   # search for commands by keyword
man -K "keyword"   # search full text of all man pages

Manual pages are stored in /usr/share/man/.

Man Page Sections

Section Contents
1 Executable programs and shell commands (regular user commands)
2 System calls (kernel interface)
3 Library calls
4 Special files (devices in /dev)
5 File formats and configuration files
6 Games
7 Miscellaneous (macros, packages, etc.)
8 System administration commands (root-only commands, in /sbin)
9 Kernel routines

Most important sections for sysadmins: 1, 5, and 8.

When the Same Name Has Multiple Sections

man passwd         # opens section 1 by default (the command)
man 5 passwd       # opens section 5 (the /etc/passwd file format)
man cron           # opens section 8 automatically (admin command)

Structure of a Man Page

Part Description
NAME Command name and one-line description
SYNOPSIS Syntax — how to write the command
DESCRIPTION Full explanation of what it does
OPTIONS All available flags and what they do
EXAMPLES Usage examples (not always present)
SEE ALSO Related commands
AUTHOR Who wrote it
BUGS Where to report bugs
COPYRIGHT License information