首页 > 资讯 > 数码知识内容详情

whatis命令 - 查询命令执行功能 2024-01-09 09:42:34 网络

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

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

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

语法格式: whatis [参数]

常用参数:

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

参考实例

ls命令执行情况:

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

cp命令执行情况:

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

chown命令执行情况:

[root@linuxcool ~]# 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@linuxcool ~]# 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

与该功能相关的Linux命令:

  • python命令 – 解释器、交互式、面向对象的编程语言
  • xlsatoms命令 – 列出原子成分
  • builtin命令 – 执行bash内建命令
  • times命令 – 显示进程累计时间
  • xlsclients命令 – 列出应用程序
  • pushed命令 – 向shell目录堆栈中添加记录
  • asradm命令 – 自动服务请求注册实用程序
  • wall命令 – 输出信息
  • hash命令 – 管理命令运行时查询的哈希表
  • killall5命令 – 向所有进程发送信号

相关标签: 数码科技