Linux command
man 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
View man page
man [command]
View specific section
man [5 passwd]
Search descriptions
man -k [keyword]
Show all sections
man -a [command]
Show file path
man -w [command]
Export as PDF via PostScript
man -t [command] | ps2pdf - [output.pdf]
说明
man displays manual pages. Man pages document commands, system calls, and configuration. The tool is the primary Unix documentation system. Sections organize different types of documentation.
参数
- -k _KEYWORD_
- Search by keyword.
- -a
- Show all matching pages.
- -w
- Show file location.
- -f _NAME_
- Display short description (equivalent to whatis).
- -K _STRING_
- Search all man pages for a string.
- -t
- Format the man page using groff to PostScript for printing or PDF conversion.
- --help
- Display help information.
FAQ
What is the man command used for?
man displays manual pages. Man pages document commands, system calls, and configuration. The tool is the primary Unix documentation system. Sections organize different types of documentation.
How do I run a basic man example?
Run `man [command]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -k _KEYWORD_ do in man?
Search by keyword.