Linux Help, Man Pages and Info Manuals
Choose the help that matches the command
You do not need to memorize every option. Bash help describes its builtins, while many GNU utilities offer --help. Manual pages and Info manuals provide more context when the required documentation is installed. Start with the implementation your shell actually uses.
Look for the usage line near the top, then the explanation of the directory argument. You can run this in Bash even if the man program is not installed.
Find the entry for -a and --all. A synopsis like ls [OPTION]... [FILE]... is a description, not a command to paste: square brackets mark optional parts and the ellipsis indicates repetition. Replace placeholders with real values.
For the displayed synopsis, you may supply no filename or several filenames; the available options determine how they are interpreted. For instance, the earlier directory-listing example supplies one option and one directory. Start by identifying the required command name, then choose only the options and operands that match your task.
Manual pages and their sections
With man-db and the relevant pages installed, man 1 ls opens a user-command manual. Section numbers distinguish different kinds of topics: 1 commands, 2 kernel calls, 3 library functions, 4 devices, 5 file formats, 6 games, 7 conventions and miscellaneous topics, 8 administration, and sometimes 9 kernel routines (not a universal section). For example, man 1 printf describes a utility whereas man 3 printf describes a C library function if installed. In the common less pager, use / to search and q to exit; pager settings can vary.
Search by topic or browse a manual
apropos directory searches indexed page names and summaries by topic. whatis ls looks up short descriptions by name. info coreutils opens the GNU Coreutils Info manual if the reader and manual are installed; Info organizes documentation into linked nodes. Missing commands or database entries do not prove that the described utility is absent. Ask the lab administrator for documentation packages or consult the matching upstream version.
Practice
From ls --help, find an option for including hidden names and one for choosing a sort order. If man is available, locate the synopsis and explain which parts are optional. Do not type the brackets or ellipses from the synopsis as literal arguments.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Help and manual pages — Knowledge Check
Apply the command-line concept in a safe beginner lab.
Which help is most direct for the Bash cd builtin?
What does [FILE] mean in the illustrated ls synopsis?
Which section commonly documents file formats?
Which command searches short manual descriptions by topic?
If man is missing, what follows?