man command in Linux is used to display the user manual of any command that we can run on the terminal. It provides a detailed view of the command which includes NAME, SYNOPSIS, DESCRIPTION, OPTIONS, EXIT STATUS, RETURN VALUES, ERRORS, FILES, VERSIONS, EXAMPLES, AUTHORS AND SEE ALSO.
1. No Option: It displays the whole manual of the command.
Syntax :
2. Section-num: Since a manual is divided into multiple sections so this option is used to display only a specific manual.
Syntax :
Example:
In this example, the manual pages of command %u2018intro%u2018 are returned which lies in section 2.
3. -f option: One may not be able to remember the sections in which a command is present. So this option gives the section in which the given command is present.
Syntax:
Example:
4. -a option: This option helps us to display all the available intro manual pages in succession.
Syntax:
Example:
In this example you can move through the manual pages(sections) i.e either reading(by pressing Enter) or skipping(by pressing ctrl+D) or exiting(by pressing ctrl+C).
5. -w option: This option returns the location in which the manual page of a given command is present.
Syntax:
Example:
Name | Views | Likes |
---|---|---|
Usermod command in Linux | 6783 | 1 |
SSH Command In Linux | 937 | 7 |
Introduction to Named Pipes | 1385 | 3 |
Linux KILL Command | 3610 | 5 |
Soft Link and Hard Link In Linux | 471 | 2 |
Vi Editor in Linux | 793 | 6 |
FDisk Command in Linux | 607 | 5 |
How to view the History in Linux | 509 | 2 |
Process Manipulation in Linux | 1893 | 4 |
Export command in Linux | 489 | 1 |
ID command in Linux | 457 | 1 |
Netstat Command in Linux | 701 | 3 |
Chmod Command in Linux | 491 | 1 |
Compressing Files in Linux | 388 | 1 |
Crontab in Linux | 520 | 1 |
File Manipulation in Linux | 672 | 5 |
Curl Command in Linux | 564 | 1 |
Env Command in Linux | 431 | 5 |
LSOF Command in Linux | 447 | 1 |
User Manual in Linux | 482 | 1 |
Whereis command in Linux | 474 | 1 |
4 Lesser Known Commands in Linux | 505 | 6 |
Shell Scripting in Linux | 697 | 4 |
Alias command in Linux | 411 | 1 |
How to Kill a Process using Command Line | 540 | 3 |
Comments