Linux-man page(Linux在线手册) 的简单使用
其中man是manual的缩写
必须要记得的代码号是1,5,8
命令: man 7 man
部分结果:
The manual sections are traditionally defined as follows:
1 Commands
Those commands that can be executed by the user from
within a shell.(使用者在shell环境中可以操作的指令或可执文件)
2 System calls
Those functions which must be performed by the kernel.
3 Library calls
Most of the libc functions, such as qsort(3).
4 Special files
Files found in /dev.(装置档案的说明,通常在/dev下的文件)
5 File formats and conventions
The format for /etc/passwd and other human-readable
files.
6 Games
7 Conventions and miscellaneous
A description of the standard file system layout, net-
work protocols, ASCII and other character codes, this
man page, and other things.(惯例与协定等,例如Linux档案系统、网路协定、ASCII code等等的说明)
8 System management commands
Commands like mount(8), many of which only root can
execute.
9 Kernel routines
This is an obsolete manual section. Once it was
thought a good idea to document the Linux kernel here,
but in fact very little has been documented, and the
documentation that exists is outdated already. There
are better sources of information for kernel develop-
ers.(跟kernel有关的文件)
按键 進行工作进行工作 空白鍵空白键 向下翻一页 [Page Down] 向下翻一页 [Page Up] 向上翻一页 [Home] 去到第一页 [End] 去到最后一页 /string 向『下』搜寻string这个字串,如果要搜寻vbird的话,就输入/vbird ?string 向『上』搜寻string这个字串 n, N 利用/或?来搜寻字串时,可以用n来继续下一个搜寻(不论是/或?) ,可以利用N来进行『反向』搜寻。 举例来说,我以/vbird搜寻vbird字串,那么可以n继续往下查询,用N往上查询。 若以?vbird向上查询vbird字串,那我可以用n继续『向上』查询,用N反向查询。
q 结束这次的man page
man page通常是放在/usr/share/man这个目录里头,然而,我们可以通过修改他的man page搜寻路径来改善这个目录的问题(但这也太无聊了吧)! 修改/etc/man.config (有的版本为man.conf或manpath.conf)即可!