✍️ Linux/Unix: Editors & Help Tools
Estimated reading: 3 minutes 24 views

πŸ“š Linux/Unix: Manuals & Help Commands – man, info, and --help Explained

🧲 Introduction – Why Learn Linux Help Tools?

When you’re working in Linux, documentation is always at your fingertipsβ€”right from the terminal. Whether you’re trying to understand a command’s options, troubleshoot syntax, or explore advanced usage, tools like man, info, and --help offer instant guidance without needing to search online.

🎯 In this guide, you’ll learn:

  • How to use man to read command manuals
  • How to explore extended documentation with info
  • How to quickly check options using --help
  • Best practices for learning new commands efficiently

πŸ“– 1. man – The Manual Pages

βœ… What is man?

man (short for manual) displays the built-in documentation for nearly every command, configuration file, and library on a Unix/Linux system.

πŸ› οΈ Syntax:

man [command]

πŸ§ͺ Example:

man ls

πŸ“€ Output:
Displays the manual page for ls, including:

  • Name and description
  • Syntax and options
  • Exit statuses
  • Examples and notes

πŸ” Navigation Keys:

KeyAction
SpaceScroll forward
bScroll back
qQuit manual page
/patternSearch for a pattern
n/NRepeat search forward/back

πŸ”Ή Manual Sections:

Linux manuals are divided into numbered sections:

SectionDescription
1User commands (e.g., ls, cat)
5File formats and config files
8System administration commands

To view a specific section:

man 5 passwd

πŸ“˜ 2. info – The GNU Info System

βœ… What is info?

info provides more detailed, hyperlinked manuals, often richer than man. It’s mostly used for GNU utilities.

πŸ› οΈ Syntax:

info [command]

πŸ§ͺ Example:

info coreutils 'ls invocation'

πŸ“€ Output:
Shows a navigable menu structure with sections like Options, Usage, Examples, etc.


πŸ” Info Navigation Keys:

KeyAction
nNext section
pPrevious section
uMove up one level
SpaceScroll forward
qQuit
mReturn to the main menu

🧠 info is useful for in-depth exploration when man is too brief.


🧾 3. --help – Quick Command Reference

βœ… What is --help?

The --help option is supported by most commands and gives a quick summary of available flags and usageβ€”great for a fast lookup.

πŸ› οΈ Syntax:

command --help

πŸ§ͺ Examples:

ls --help

πŸ“€ Output (truncated):

Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
...
  -a, --all             do not ignore entries starting with .
  -l                    use a long listing format

🧠 Ideal for quick refreshers or script writers who don’t need full manuals.


🧠 Tool Comparison Table

ToolPurposeDepthInteractivityBest Use Case
manFull command manualMediumScroll/searchStandard usage reference
infoHypertext GNU documentationHighMenu-basedDetailed, structured exploration
--helpQuick command-line summaryLowScroll onlyFast option reference

πŸ“Œ Summary – Recap & Next Steps

Linux makes it easy to learn as you go. With man, info, and --help, you can understand commands, debug errors, and optimize scripts without leaving the terminal.

πŸ” Key Takeaways:

  • Use man for standard command references and syntax.
  • Use info for GNU command deep-dives with navigable menus.
  • Use --help for quick flag lookups or reminders.

❓ FAQs

❓ How do I find which manual sections are available for a command?
βœ… Use:

man -f command

or

whatis command

❓ What if the man page is missing?
βœ… Install the manual packages:

sudo apt install man-db

❓ How do I search for a command’s man page by keyword?
βœ… Use:

man -k keyword

Example:

man -k network

❓ What’s the difference between man and info?
βœ… man is brief and linear. info is detailed, with hyperlinks and menus.

❓ How do I see all options of a command without reading the manual?
βœ… Use:

command --help

Share Now :

Leave a Reply

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

Share

πŸ”΅ Linux/Unix: Manuals & Help (man, info, –help)

Or Copy Link

CONTENTS
Scroll to Top