whatis命令 – 查询命令执行功能

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

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

语法格式: whatis [参数]

常用参数:

其他命令 显示该命令的执行功能

参考实例

ls命令执行情况:

[root@xtuos.com ~]# whatis ls
ls                   (1)  - list directory contents
ls                   (1p)  - list directory contents

cp命令执行情况:

[root@xtuos.com ~]# whatis cp
cp                   (1)  - copy files and directories
cp                   (1p)  - copy files

chown命令执行情况:

[root@xtuos.com ~]# whatis chown
chown                (1)  - change file owner and group
chown                (1p)  - change the file ownership
chown                (2)  - change ownership of a file
chown                (3p)  - change owner and group of a file

man命令执行情况:

[root@xtuos.com ~]# 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) - A set of documentation tools: man, apropos and whatis.
man-pages           (rpm) - Man (manual) pages from the Linux Documentation Project.
man.config [man]     (5)  - configuration data for man

原创文章,作者:云东方,如若转载,请注明出处:https://www.yundongfang.com/1490.html

(0)
上一篇 2021年3月18日 下午6:08
下一篇 2021年3月18日 下午6:14

相关推荐

  • acpid命令 – 电源高级接口配置

    acpid命令向用户空间程序通知ACPI事件, acpid应该在系统引导期间启动,并且默认情况下将作为后台进程运行;它将打开一个事件文件(默认为/proc/acpi/event),…

    Linux命令 2021年3月18日
  • lvmdiskscan命令 – 扫描可见LVM2所有设备

    lvmdiskscan命令的作用是可以在系统中为LVM物理卷扫描所有的SCSI、IDE磁盘、多种设备和其他块设备。 lvmdiskscan命令会扫描所有可见的LVM2设备,而LVM…

    Linux命令 2021年3月19日
  • newaliases命令 – 文字模式转换

    Linux newaliases命令会使用一个在 /etc/aliases 中的档案做使用者名称转换的动作。当 sendmail 收到一个要送给 xxx 的信时,它会依据 alia…

    Linux命令 2021年3月19日
  • newgrp命令 – 登入另一个群组

    newgrp命令类的英文全称为“new group”,该命令类似login指令,当它是以相同的帐号,另一个群组名称,再次登入系统。欲使用newgrp指令切换群组,您必须是该群组的用…

    Linux命令 2021年3月19日
  • xlsclients命令 – 列出应用程序

    xlsclients命令用来列出显示器中的客户端应用程序。 语法格式:xlsclients [参数] 常用参数: -a 列出所有显示器的客户端应用程序信息 -display 指定X…

    Linux命令 2021年3月18日
  • redis-server命令 – redis服务端程序启动

    Redis是一个开放源码(BSD授权)的内存数据结构存储,用作数据库、缓存和消息中介。redis-server命令是一个启动Redis服务器的命令行。redis-sentinel命…

    Linux命令 2021年3月18日
  • host命令 – 域名查询

    host命令是一个用于执行DNS查找的简单实用程序。它通常用于将名称转换为IP地址,反之亦然。 如果没有给出参数或选项,host将打印其命令行参数和选项的简短摘要。 语法格式: h…

    Linux命令 2021年3月19日
  • command命令 – 调用并执行指定的命令

    command命令调用指定的指令并执行,命令执行时不查询shell函数。command命令只能够执行shell内部的命令。 当系统内定义了与linux命令相同的函数时,使用comm…

    Linux命令 2021年3月18日
  • httpd命令 – Apache HTTP服务器程序

    httpd为Apache HTTP服务器程序。直接执行程序可启动服务器的服务。 语法格式:httpd [参数] 常用参数: -t 测试配置文件的语法是否正确 -l 显示服务器编译时…

    Linux命令 2021年3月19日
  • iftop命令 – 套接字及进程的网络利用率

    iftop是一款实时流量监控工具,监控TCP/IP连接等,缺点就是无报表功能。必须以root身份才能运行。 语法格式:iftop [参数] 常用参数: -i 指定要监控的网卡 -n…

    Linux命令 2021年3月19日