美文网首页
2018-11-25 whatis

2018-11-25 whatis

作者: yaha21 | 来源:发表于2018-11-25 18:05 被阅读2次

    whatis命令是用于查询一个命令执行什么功能,并将查询结果打印到终端上。

    whatis命令在用catman -w命令创建的数据库中查找command参数指定的命令、系统调用、库函数或特殊文件名。whatis命令显示手册部分的页眉行。然后可以发出man命令以获取附加的信息。whatis命令等同于使用man -f命令。

    语法

    whatis

    实例

    [root@localhost ~]# whatis  ls

    ls                   (1)  - list directory contents

    ls                   (1p)  - list directory contents

    [root@localhost ~]# whatiscp

    cp                   (1)  - copy files and directories

    cp                   (1p)  - copy files

    [root@localhost ~]# whatischown

    chown                (1)  - changefileowner and group

    chown                (1p)  - change the file ownership

    chown                (2)  - change ownership of a file

    chown                (3p)  - change owner and group of a file

    [root@localhost ~]# whatis man

    man                  (1)  - format and display the on-line manual pages

    man                  (1p)  - display system documentation

    man                  (7)  - macros to format man pages

    man                 (rpm) - Asetof documentation tools: man,aproposand whatis.

    man-pages           (rpm) - Man (manual) pages from the Linux Documentation Project.

    man.config [man]     (5)  - configuration data for man



    #922~944
    manual:使用手册

    whatis keyword

    man # KEYWORD

    SECTION:

    NAME

    SYNOPSIS

    [ ] 可选,      <> 必选,    |  多选一  ,   {} 可选的内容, ...

    ...

    控制命令:

    Space  向后翻一页,  b向前翻一页

    Enter向后翻一行, k向前翻一行

    Ctrl+d向后翻半屏, Ctrl+u向前翻半屏

    q退出

    #G  :数字+G   跳到指定的某行      不加数字:跳至最后一行

    /keyword    搜索某一个关键词

    ?keyword  搜索某一个关键词

                     n    查找下一个关键词

                     N   查找上一个关键词

    基础命令:pwd, cd, ls, echo, date, clock, cal, hwclock, cat, tac, file, type, tty, halt, poweroff, shutdown, reboot

    相关文章

      网友评论

          本文标题:2018-11-25 whatis

          本文链接:https://www.haomeiwen.com/subject/cpapqqtx.html