Linux Help Systems: man, –help and info — the Manual Already on Your Machine

Every Linux system ships with its own documentation, installed beside the commands it describes, readable with no network connection and no account. Three systems do most of the work: the manual pages read with man, the short usage summary most tools print with --help, and GNU’s hypertext info system. Knowing which one to reach for — and how to search all of them at once — turns “I don’t know this command” from a dead end into a thirty-second detour.

Linux Help Systems: man, –help and info — the Manual Already on Your Machi
Photo: The Fedora Project, GPL, via Wikimedia Commons

man: the reference manual, section by section

The man command displays manual pages, the canonical reference for commands, system calls, library functions, configuration files and more. Pages are divided into numbered sections — section 1 is user commands, section 5 is file formats, section 8 is administration commands — which is why you will see a name written as passwd(1) for the command and passwd(5) for the file it edits. When a name exists in more than one section, ask for the one you mean: man 5 passwd opens the file format, not the command.

Inside a page, the structure is standardized: NAME, SYNOPSIS, DESCRIPTION, OPTIONS, EXAMPLES on the better-written pages, and SEE ALSO pointing at related pages. Two search tools make the manual usable when you do not yet know a command’s name: man -k keyword (equivalent to apropos) searches the one-line descriptions of every page, and whatis name prints that one-line description for a name you already have. The man-pages project, which maintains the core Linux pages at man7.org, documents this structure as the project’s own standard.

–help: the thirty-second answer

Most GNU tools — and a large share of other command-line programs — answer --help (often also -h) with a compact usage summary: the command’s syntax, its common options, and where to report bugs or find the full manual. It is deliberately shorter than the manual page. Reach for --help when you know the command and need one option’s exact spelling; reach for man when you need behavior, edge cases, exit codes or examples. A useful habit: run the command with --help first, and if the output ends by pointing at a manual or info page, that pointer is the author telling you where the real documentation lives.

info: the full manual, linked

GNU’s info system holds the complete manuals for many GNU programs — coreutils is the classic example — organized as linked nodes you move through with the space bar, n for next node and q to quit. Where a manual page is a single long scroll written to be complete but terse, an info manual is written as a book, with a table of contents, concept chapters and worked examples. The GNU coreutils manual, for instance, explains not just each command’s flags but the reasoning and portability notes behind them. If man coreutils feels thin on a GNU system, info coreutils is usually where the missing depth went.

A working order that solves most questions

Start with --help for syntax. Move to man for the authoritative option list and the sections most people skip — EXIT STATUS tells you what a script can test, and EXAMPLES, when present, is the fastest safe way to learn a command’s idioms. Use apropos when you know the task but not the tool (“which command shows disk usage?”). Use info when the GNU manual exists and you need the why, not just the what. And read the SEE ALSO lines: they are a curated map from the command you found to the ones you actually needed.

Linux Help Systems: man, –help and info — the Manual Already on Your Machi
Photo: Parzi, CC BY-SA 3.0, via Wikimedia Commons

The bottom line

Linux help is not one system but three layers of the same library: --help for the moment, man for the reference, info for the book. None of them needs the internet, all of them match the exact version installed on your machine — which no web tutorial can promise — and together they are why experienced administrators check the local manual before they check anything else.

By Karl Amber

Sources

  • The man-pages project (man7.org) — the manual-page sections, man, apropos and whatis documentation.
  • GNU coreutils manual (GNU) — the info-manual structure and the --help convention across GNU tools.
  • GNU Texinfo / info documentation — node navigation and manual organization.

Editor’s note: this article is part of ScanderLoud’s Cybersecurity & Networking series. It was researched from the man-pages project and GNU documentation — our coverage is original and educational throughout. No NetworkChuck video was opened or used.

Featured image: Peter Littmann, CC BY-SA 4.0, via Wikimedia Commons

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *