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 fromDocumentation Index
Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
Use this file to discover all available pages before exploring further.
--help to man pages, apropos searches, and shell autocompletion.
Quick Help with --help
Most commands support a --help or -h option for a concise overview:
-l flag for long listings:
Viewing Help in a Pager
Some tools pipe help text through a pager (usuallyless). For example:
q to quit the pager.
Accessing Full Manuals with man
The man command opens detailed manual pages for nearly every tool:
- NAME: Brief description
- SYNOPSIS: Command syntax
- DESCRIPTION: Detailed behavior
- OPTIONS: Available flags and switches
- EXAMPLES: Usage scenarios (if provided)
Choosing the Right Section
Many entries exist in multiple man sections (e.g.,printf). Specify the section number to disambiguate:
Section 1 is for user commands, while Section 3 covers C library functions.
Searching with apropos
When you only remember the topic, not the command name, apropos searches man-page descriptions:
If you get “no entry found,” update the man database before retrying:
Accelerating Work with Tab Completion
Shell autocompletion suggests commands, options, and paths.- Type part of a command and press
Tabto complete it, or press twice for a list. - Use it to complete subcommands, flags, and file names.
systemctl verbs:
Practice and Exam Tips
- Pick an unfamiliar command.
- Explore it with
--helpandman. - Use
aproposto discover related tools. - Rely on tab completion to speed up typing.
Summary of Documentation Tools
| Command | Purpose | Example |
|---|---|---|
--help | Quick usage summary and options | ls --help |
man | Full manual pages | man journalctl |
apropos | Search man pages by keyword | apropos directory |
| Tab Completion | Auto-complete commands and file paths | systemctl <Tab><Tab> |