Email: zcatt@163.com
Blog http://zcatt.blog.chinaunix.net
声明
仅限学习交流,禁止商业用途。转载需注明出处。
版本记录
Date Ver Note
2011-06-09 0.1 Draft. zcatt, Beijing
1. man命令的使用
=======================
linux中的man命令方便查询各种命令.常用的简单命令形式如下,
- man [
]
其中section是指手册中的分部. 有8个section,
1. user commands
2. system calls
3. C lib functions
4. devices and special files
5. file format and conventions
6. games et. Al.
7. miscellanea
8. system administration tools and daemons
这8个section下还可以有更小的分部.
经常会碰到要查的name出现在多个分部中, 要想确定那个是自己要寻找的, 可以使用下面的命令
- man -f
- whatis
两个命令等同.
例如, 查perl中的open, 那么
- $ man -f open
- open (2) - open and possibly create a file or device
- open (3p) - open a file
可见是在3pm分部中, 则
- $man 3p open
2. man界面的使用
=======================
man界面中键入h或H可以调出help提示.
常用的操作,
/pattern 向下寻找pattern匹配的内容
?pattern 向上寻找pattern匹配的内容
2. man的配置
=======================
一般man的配置文件是/etc/man.config.
另外, 如果查询不到