man Command
Display manual pages and documentation for Linux commands, system calls, and functions.
Syntax
The man command displays the manual pages (documentation) for commands, system calls, library functions, and configuration files in Linux systems.
Common Options
| Option | Description |
|---|---|
-k, --apropos |
Search manual page names and descriptions |
-f, --whatis |
Display short description of command |
-w, --where |
Show location of manual page files |
-a, --all |
Display all matching manual pages |
-u, --update |
Update manual page cache |
-P, --pager |
Specify pager program to use |
-H, --html |
Output in HTML format |
-t, --troff |
Format for printing |
Manual Page Sections
| Section | Description | Examples |
|---|---|---|
1 |
User commands | ls, cp, mv, grep |
2 |
System calls | open, read, write, fork |
3 |
Library functions | printf, malloc, strlen |
4 |
Device files | null, zero, random |
5 |
File formats | passwd, fstab, hosts |
6 |
Games | fortune, cowsay |
7 |
Miscellaneous | ascii, regex, signal |
8 |
System administration | mount, fsck, iptables |
Basic Examples
Viewing manual pages
Display manual pages for commands and topics
Searching manual pages
Search for manual pages by keywords and descriptions
Manual page information
Get information about manual page locations and database
Navigating Manual Pages
Navigation Keys (in less pager)
- Space or Page Down - Next page
- b or Page Up - Previous page
- ↓ or j - Next line
- ↑ or k - Previous line
- g - Go to beginning
- G - Go to end
- /pattern - Search forward
- ?pattern - Search backward
- n - Next search result
- N - Previous search result
- h - Help
- q - Quit
Search within manual pages
Search for specific content within manual pages
Advanced Usage
Output formatting
Format manual pages for different output methods
Configuration and customization
Customize manual page display and behavior
Batch operations
Batch processing and management of manual pages
Manual Page Structure
Standard Sections
- NAME - Command name and brief description
- SYNOPSIS - Command syntax and options
- DESCRIPTION - Detailed description of functionality
- OPTIONS - Command-line options and arguments
- EXAMPLES - Usage examples
- FILES - Related files and directories
- SEE ALSO - Related commands and references
- BUGS - Known issues and limitations
- AUTHOR - Author information
Reading manual syntax
Understanding the syntax notation used in manual pages
Practical Examples
Learning new commands
Use man to learn about new commands and system concepts
Quick reference
Quick reference and command discovery
Documentation workflow
Building personal documentation and reference materials
Troubleshooting
Common Issues
- No manual entry - Command not installed or no manual available
- Broken display - Terminal encoding or pager issues
- Missing sections - Development packages not installed
- Outdated cache - Manual database needs updating
Fixing manual issues
Resolve common manual page display and access issues
Alternative documentation
Alternative sources of command documentation