Getting Help in Linux (man, info, --help)¶
One of the greatest strengths of Linux is that help is always available. Instead of memorizing every command, learn how to find the right information quickly using built-in documentation tools like
man,info, and--help.
Learning Path¶
Course Progress
What You'll Learn¶
After completing this lesson, you'll be able to:
- Use the
mancommand effectively - Navigate Linux manual pages
- Understand the
infodocumentation system - Use the
--helpoption - Find documentation for almost any Linux command
- Become a self-sufficient Linux user
Prerequisites¶
Before starting this lesson, complete:
- Module 1 Lessons 1–9
Why Learn Linux Help Commands?¶
Many beginners try to memorize Linux commands.
Experienced Linux administrators don't.
Instead, they know how to find the information they need.
Linux provides excellent built-in documentation that is available even without an internet connection.
Learning these tools will save you countless hours throughout your career.
Types of Linux Documentation¶
Linux provides multiple ways to access help.
Need Help?
│
▼
+----------------------+
| command --help |
+----------------------+
│
▼
+----------------------+
| man command |
+----------------------+
│
▼
+----------------------+
| info command |
+----------------------+
│
▼
Official Documentation
Each tool serves a different purpose.
Method 1 — Using --help¶
The quickest way to learn command syntax.
Example:
Output:
Try:
Use --help when you need a quick reminder of command options.
Method 2 — Using man¶
The man (manual) command provides detailed documentation.
Syntax:
Example:
This opens the complete manual page for the ls command.
Anatomy of a Man Page¶
A typical man page contains:
Example:
The Synopsis shows how to use the command.
Navigating Man Pages¶
Useful keyboard shortcuts:
| Key | Action |
|---|---|
| ↑ / ↓ | Scroll one line |
| Space | Next page |
| b | Previous page |
| / | Search |
| n | Next search result |
| q | Quit |
Example:
Search for "pattern":
Exit:
Searching Manual Pages¶
Search manuals by keyword:
Example output:
Equivalent command:
This is useful when you know what you want to do, but not the exact command.
Manual Sections¶
Linux manuals are organized into sections.
| Section | Description |
|---|---|
| 1 | User Commands |
| 2 | System Calls |
| 3 | Library Functions |
| 4 | Device Files |
| 5 | Configuration Files |
| 6 | Games |
| 7 | Miscellaneous |
| 8 | System Administration |
Example:
This opens the documentation for the passwd file format, not the passwd command.
Method 3 — Using info¶
Some GNU tools provide more detailed documentation through the info system.
Example:
Advantages:
- More detailed than
man - Hyperlinked navigation
- Better for learning GNU utilities
Navigation:
| Key | Action |
|---|---|
| Arrow Keys | Navigate |
| Enter | Follow Link |
| l | Back |
| q | Quit |
Finding Command Locations¶
Find where a command is installed:
Example:
Display all matching commands:
Output:
Identify Command Type¶
Determine whether a command is:
- Built-in
- Alias
- Executable
Example:
Output:
Learn About Shell Built-in Commands¶
Some commands don't have manual pages because they are part of the shell.
Example:
Other examples:
Production Perspective¶
In production environments, engineers rarely remember every command option.
Instead, they quickly check documentation using:
man--helpinfoapropos
Knowing how to find information is more valuable than memorizing syntax.
Hands-on Lab¶
View the manual for ls¶
Exit using:
View command help¶
Search manual pages¶
Find command location¶
Check command type¶
Open GNU documentation¶
Best Practices¶
- Use
--helpfor quick syntax. - Use
manfor detailed documentation. - Use
infofor GNU utilities. - Search manuals before searching the internet.
- Read command examples carefully.
Common Mistakes¶
❌ Memorizing every command.
✅ Learn how to use Linux documentation effectively.
❌ Ignoring manual pages.
✅ The man command often provides everything you need.
❌ Searching Google for basic syntax.
✅ Try command --help first—it is usually faster.
Interview Questions¶
Beginner¶
- What is the purpose of the
mancommand? - What does
--helpdisplay? - What is the difference between
manandinfo? - Which key exits a man page?
Intermediate¶
- Explain Linux manual sections.
- What does
man -kdo? - How do you determine whether a command is built into the shell?
Architect Level¶
- Why should engineers rely on built-in documentation?
- How does understanding Linux documentation improve troubleshooting?
- How would you teach a new engineer to become self-sufficient when learning Linux?
Summary¶
In this lesson, you learned:
- How to use
--help - How to navigate manual pages
- How to use the
infodocumentation system - How to search Linux manuals
- How to identify command types
- How to locate executables
One of the most valuable Linux skills is not remembering every command—it's knowing where to find reliable documentation quickly.
Key Takeaways¶
command --helpprovides quick command usage.manoffers detailed reference documentation.infoprovides comprehensive GNU documentation.man -kandaproposhelp you discover commands.which,whereis, andtypehelp identify command locations and types.
What's Next?¶
Module 1 Summary — Linux Fundamentals
Congratulations!
You have successfully completed Module 1 – Linux Fundamentals.
In Module 2: Linux Command Line Essentials, you'll start using Linux like a professional.
You'll learn:
- Understanding the Shell
- Bash Basics
- Navigation Commands
- Working with Files and Directories
- Viewing File Contents
- Searching Files
- Wildcards
- Pipes and Redirection
- Command History
- Productivity Tips
From this point onward, the course becomes highly hands-on, and every lesson will include real-world administration tasks and production-focused labs.