|
发表于 2010-6-28 22:01:19
|
显示全部楼层
Linux的在线文档大概可以分为以下几类:
(1)Man格式的手册,默认存放于/usr/share/man目录,用man命令查看。
(2)Info 格式的手册,默认存放于/usr/share/info 目录,用info 命令查看。
(3)/usr/share/doc/目录下,针对每个软件有一个目录,存放FAQ,README,Changelog之类的文档。
man手册的使用方法
/usr/share/man
[root@localhost man]# find . -name passwd*
./man1/passwd.1.gz
./man3/passwd2des.3.gz
./man5/passwd.5.gz
[root@localhost man]# man man
[root@localhost man]# man -S 1 passwd
[root@localhost man]# man -S 5 passwd
[root@localhost man]# man -k passwd
如果是.gz结尾的,则用zmore查看,如果是文本,用more查看。
[root@sunco201 man1]# zmore /usr/share/man/man1/kill.1.gz
man手册是按照下面的规则进行分类的:
1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File formats and conventions eg /etc/passwd
6 Games
7 Miscellaneous (including macro packages and conven-tions), e.g. man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard] |
|