标题:常用的帮助命令 出处:刘佳的技术日志、博客 时间:Fri, 12 Oct 2007 15:08:12 +0000 作者:kook 地址:http://www.52zhe.cn/read.php/110.htm 内容: 常用的帮助命令 man info --help 引用 ------------------------------------ man -f (full) 等效于 whatis ------------------------------------ [root@kook ~]# man -f fstab fstab (5) - static information about the filesystems fstab-decode (8) - run a command with fstab-encoded arguments man -k (keyword) 等效于 apropos ------------------------------------ [root@kook ~]# man -k fstab ------------------------------------ endfsent [getfsent] (3) - handle fstab entries fstab (5) - static information about the filesystems fstab-decode (8) - run a command with fstab-encoded arguments getfsent (3) - handle fstab entries getfsfile [getfsent] (3) - handle fstab entries getfsspec [getfsent] (3) - handle fstab entries nfs (5) - nfs and nfs4 fstab format and options setfsent [getfsent] (3) - handle fstab entries 一些常用法。 ------------------------------------ 一:查找passwd的文件格式 ------------------------------------ [root@kook ~]# man -f passwd passwd (1) - update a user's authentication tokens(s) passwd (5) - password file passwd.nntp [passwd] (5) - passwords for connecting to remote NNTP servers passwd (rpm) - The passwd utility for setting/changing passwords using PAM passwd [sslpasswd] (1ssl) - compute password hashes [root@kook ~]# man 5 passwd ------------------------------------ 二:查找和卷标相关的命令 ------------------------------------ [root@kook ~]# man -k label e2label (8) - Change the label on an ext2/ext3 filesystem findfs (8) - Find a filesystem by label or UUID mlabel (1) - make an MSDOS volume label ppmlabel (1) - add text to a PPM image vol_id (8) - probe filesystem type and read label and uuid 有些命令可能在手册种1-8中都有所涵盖,直接用man passwd得到就是命令的使用方法,当你想查找/etc/passwd这个文件的man的相关情况的话,就需要用man 5 passwd才能得到。所以,可以先用man -f command得到这个在各个手册中的存在情况。用于定位。 引用 1:用户指令 2:系统调用 3:程序库 4:设备说明 5:文件格式 6:游戏 7:杂项 8:系统指令 9:内核 另:Tcl/Tk Generated by Bo-blog 2.1.0