This guide covers accessing Linux system documentation through commands like --help, man, apropos, and using shell autocompletion.
Linux ships with an extensive set of built-in manuals and help tools. Whether you need a quick reminder of flags or a deep dive into syntax, you can access all of it directly from the command line. This guide covers everything from --help to man pages, apropos searches, and shell autocompletion.
Most commands support a --help or -h option for a concise overview:
Copy
Ask AI
$ ls --helpUsage: ls [OPTION]... [FILE]...List information about the FILEs (the current directory by default).... -a, --all do not ignore entries starting with . -l, --long use a long listing format -h, --human-readable with -l, print sizes in human readable format
Scroll through the output to find the -l flag for long listings:
Some tools pipe help text through a pager (usually less). For example:
Copy
Ask AI
$ journalctl --helpjournalctl [OPTIONS...] [MATCHES...]Query the journal.Options: --system Show the system journal --user Show the user journal -S, --since=DATE Show entries not older than the specified date -U, --until=DATE Show entries not newer than the specified cursor -b, --boot[=ID] Show current boot or the specified boot --list-boots Show terse information about recorded boots
Use ↑/↓ or Page Up/Page Down to navigate, then q to quit the pager.
For the Linux Foundation Certified SysAdmin exam, all of these lookup methods are allowed. Mastering them will save you time and boost your confidence.