首页 > 其他 > 详细

man命令

时间:2016-08-02 17:20:20      阅读:182      评论:0      收藏:0      [点我收藏+]

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


本文出自 “司马铁柱” 博客,请务必保留此出处http://simatiezhu.blog.51cto.com/11892729/1833486

man命令

原文:http://simatiezhu.blog.51cto.com/11892729/1833486

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!