man命令是Linux下的帮助指令,通过man命令可以查看到Linux的命令帮助,配置文件帮助 等信息

    man的章节:

        1、用户命令

        2、系统调用

        3、C库调用

        4、设备文件及特殊文件

        5、配置文件格式

        6、游戏

        7、杂项

        8、管理类的命令

        9、Linux内核API


     用法:

       man (选项)(参数)

    

            选项:

                    -a:在所有的man帮助手册中搜索

                    -f:同"whatis"命令,显示关键字的简短描述信息

                    -m:指定man手册的搜索路径


            man命令的配置文件路径:

                        CentOS 6 --> /etc/man.conf

                        CentOS 7 --> /etc/man_db.conf

        

    提示:刚安装完的系统,运行“whatis”命令有可能报错,由于数据库没有更新,

         所以我们可以使用(CentOS 6)“makewhatis”命令来制作数据库|(CentOS 7)

        使用“makedb”命令


    例如:搜索passwd命令帮助

    

centos7 ~]# man -f passwd
    sslpasswd (1ssl)     - compute password hashes
    passwd (1)           - update user's authentication tokens
    passwd (5)           - password file

 centos7 ~]# man 1 passwd