Linux provides built-in help systems to learn commands, options, and usage.
The most common help methods are:
- man pages
- info pages
- --help option
1. man Pages
What is man?
man stands for manual pages.
It provides detailed documentation for Linux commands, system calls, configuration files, and utilities.
Basic Syntax
man command_name
Example:
man ls
This opens the manual page for the ls command.
Sections in man Pages
| Section | Description |
|---|---|
| NAME | Command name and purpose |
| SYNOPSIS | Command syntax |
| DESCRIPTION | Detailed explanation |
| OPTIONS | Available flags/options |
| EXAMPLES | Usage examples |
| SEE ALSO | Related commands |
Important man Navigation Keys
| Key | Action |
|---|---|
| Arrow Up/Down | Scroll |
| Space | Next page |
| /word | Search word |
| n | Next search result |
| q | Quit |
Search man Pages
Search by Keyword
man -k network
Equivalent to:
apropos network
Short Description Only
whatis ls
2. info Pages
What is info?
info provides more detailed and structured documentation than man.
It supports:
- Navigation menus
- Hyperlink-like structure
- Detailed GNU documentation
Basic Syntax
info command_name
Example:
info bash
info ls or info pwd
Features of info
- Detailed explanations
- Node-based navigation
- Better for large documentation
Navigation Keys in info
| Key | Action |
|---|---|
| Arrow Keys | Move |
| Enter | Open node |
| u | Go up |
| n | Next node |
| p | Previous node |
| q | Quit |
3. --help Option
Most Linux commands provide quick help using:
command --help
Example:
ls --help
Purpose of --help
Shows:
- Command syntax
- Options
- Short explanations
Advantages of --help
- Fast and simple
- No manual navigation needed
- Good for quick reference
Locate Command Documentation
whereis bash
View Command Path
which python
Top comments (0)