The man command is used to display the manual (documentation) for Linux commands. It provides detailed information about how a command works, including available options, usage examples, and descriptions.
It is commonly used when working in SSH to understand unfamiliar commands without leaving the terminal.
Table of Contents
How the command works
The basic structure is:
man command_name
For example:
man grep
This opens the manual page for the grep command.
Navigating manual pages
Manual pages are displayed in a viewer that allows navigation:
- Use arrow keys to scroll
- Press
Spaceto move down one page - Press
qto exit the manual
Structure of a manual page
Most manual pages are divided into standard sections such as:
- NAME – command name and short description
- SYNOPSIS – command syntax
- DESCRIPTION – detailed explanation of functionality
- OPTIONS – available parameters and flags
- EXAMPLES – practical usage (if available)
Practical use cases
The man command is commonly used for:
- understanding unfamiliar SSH commands
- checking available options for a command
- learning correct syntax before execution
- troubleshooting command usage
Practical implications
The man command does not modify system data. It only provides documentation.
It is one of the most reliable ways to understand how a system command behaves directly on the server, without relying on external resources.
Summary
The man command displays built-in documentation for Linux commands. It is a core reference tool in SSH environments for understanding command usage and options.