linux man
man
man是manual命令的簡寫,上學時學過為手動的用手的意思,這是名詞為說明書的意思
man man # 使用這個命令可以查看man的使用方法以下為man的描述
DESCRIPTION
man is the system’s manual pager. Each page argument given to man is normally the name of a program, utility or function.
The manual page associated with each of these arguments is then found and displayed.
A section, if provided, will direct man to look only in that section of the manual.
The default action is to search in all of the available sections following a pre-defined order (“1 n l 8 3 2 3posix 3pm 3perl 5 4 9 6 7” by default, unless overridden by the SECTION directive in /etc/manpath.config), and to show only the first page found, even if page exists in several sections.
中文:
man的命令類型
| 1 | Executable programs or shell commands | 常用的系統命令 | man top |
| 2 | System calls (functions provided by the kernel) | 系統調用 | man 2 write |
| 3 | Library calls (functions within program libraries) | man 3 printf | |
| 4 | Special files (usually found in /dev) | 特殊文件,也就是/dev下的各種設備文件 | |
| 5 | File formats and conventions eg /etc/passwd | 文件的格式,比如passwd, 就會說明這個文件中各個字段的含義 | man 5 passwd |
| 6 | Games | ||
| 7 | Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7) | 其他命令 | man 7 environ |
| 8 | System administration commands (usually only for root) | only root | man 8 ifconfig |
因為有些命令在很多page都有,比如write等,那么想要查詢指定的頁面命令必須加上頁面號
sections
Conventional section names include NAME, SYNOPSIS, CONFIGURATION, DESCRIPTION, OPTIONS, EXIT STATUS, RETURN VALUE, ERRORS, ENVIRONMENT, FILES, VERSIONS, CON-FORMING TO, NOTES, BUGS, EXAMPLE, AUTHORS, and SEE ALSO.| NAME | 命令名稱 |
| SYNOPSIS | 簡介 |
| CONFIGURATION | 配置 |
| DESCRIPTION | 描述 |
| OPTIONS | 參數 |
| EXIT STATUS | |
| RETURN VALUE | 返回值 |
| ERRORS | |
| ENVIRONMENT | |
| FILES | |
| VERSIONS | |
| CONFORMING TO | |
| NOTES | |
| BUGS | |
| EXAMPLE | 實例 |
| AUTHORS | 作者 |
| SEE ALSO | 其他 |
ref
ref1
總結
- 上一篇: NLP hanlp分词源码解析
- 下一篇: linux 命令综述