• linux帮助手册(help/man/info)


    linux本身有数据库(数据库名whatis)--man实际是从whatis数据库里查找信息.

    makewhatis 刚装系统,man不能用,makewhatis命令.整理whatis数据库.

    当使用man命令时,先在whatis数据库里查找ls相关文档,再用less打开其文档,

    man手册每章节内容:

    [root@localhost ~]# man man  --查看man手册每章节作用。

           1   Executable programs or shell commands   ---通用命令

           2   System calls (functions provided by the kernel)  -- 系统的调用指令

           3   Library calls (functions within program libraries)--C语言标准库函数

           4   Special files (usually found in /dev)--有关设备文件的帮助

           5   File formats and conventions eg /etc/passwd--配置文件帮助

           6   Games--游戏

           7   Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)

                             -- 杂项(man手册进行分类,但是仍然有很多不能准确分类,就放在这里了)

           8   System administration commands (usually only for root) --系统管理维护命令(安装软件,挂载...)

           9   Kernel routines [Non standard]  ---内核程序

    man -f等同于whatis.    (-f指found)

    man -k等同于apropos(包含)。--用来通过关键字(-k指keyword)查找定位手册页的名字和描述。

    [root@localhost ~]# man -f passwd

    sslpasswd (1ssl)     - compute password hashes

    passwd (1)           - update user's authentication tokens

    passwd (5)           - password file

    [root@localhost ~]# whatis passwd

    sslpasswd (1ssl)     - compute password hashes

    passwd (1)           - update user's authentication tokens

    passwd (5)           - password file

    [root@localhost ~]# man 5 passwd  --查看第5章节关于passwd的内容

    [root@localhost ~]# man -k passwd  --查看man手册中带有passwd字段的描述。

    [root@localhost ~]# apropos passwd

    [root@localhost ~]# info passwd   --将所有带有passwd的文档内容都连接显示,man手册更加详细,但是没有章节,内容杂乱,不建议使用.

    [root@localhost test]# ls --help       --用采用长选项--help查看帮助。

  • 相关阅读:
    复制构造函数
    c++运算符优先级
    std::condition_variable(二)
    std::condition_variable
    std::unique_lock
    std::lock_guard
    Oracle 11gR2 11.2.0.1 ( 11.2.0.1的BUG?):ohasd不能正常启动:ioctl操作:npohasd的问题:【chmod a+wr /var/tmp/.oracle/npohasd】
    bat、cmd、dos窗口:后台调用,不显示黑色的控制台dos(命令行)窗口
    Ubuntu 安装 Oracle11gR2:'install' of makefile '/home/oracle/app/oracle/product/11.2.0/dbhome_1/ctx/lib/ins_ctx.mk'
    Ubuntu 10.04 安装 Oracle11gR2
  • 原文地址:https://www.cnblogs.com/lbg-database/p/10109980.html
Copyright © 2020-2023  润新知