你是记不住所有的命令和它们所有的选项的,所以你需要那个男人的帮助——J.W
man 命令,将命令分为9个section 或级别:
Section 1 | User Command |
Section 2 | System Calls |
Section 3 | Library Functions |
Section 4 | Special Files (Device Files) |
Section 5 | File Formats (Configuration Files) |
Section 6 | Games and Screensavers |
Section 7 | Protocols and file systems |
Section8 | System Admin and privileged command |
Section 9 | Linux Kernel API |
这几个section的设置,是为了让用户方便的知道自己正在查询哪个命令。
man 1 passwd
man 5 passwd
上面这两条命令查询的是不同的命令,中间的数字代表section不同。
进入man page后,按h可以进入帮助页,按q可以退输入出。
输入/string 可以用来查找string,比如要查找not这个单词,输入/not。
如果想要得到和关键字相关的所有命令的信息,使用-k关键字,比如我要知道和passwd相关的命令:
man -k passwd
将会列出所有和passwd相关的命令。