加入收藏 | 设为首页 | 会员中心 | 我要投稿 西双版纳站长网 (https://www.0691zz.com.cn/)- 数据计算、IT业界、服务器、教程、云日志!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

whatis命令是用于查询一个命令执行什么功能

发布时间:2023-07-29 10:02:32 所属栏目:Linux 来源:未知
导读:   Linux常用命令whatis命令是用于查询一个命令执行什么功能,并将查询结果打印到终端上,下面为大家分享一下Linux常用命令whatis命令具体使用方法。



  whatis命令在用catman -w命
  Linux常用命令whatis命令是用于查询一个命令执行什么功能,并将查询结果打印到终端上,下面为大家分享一下Linux常用命令whatis命令具体使用方法。
 
  whatis命令在用catman -w命令创建的数据库中查找command参数指定的命令、系统调用、库函数或特殊文件名。whatis命令显示手册部分的页眉行。然后可以发出man命令以获取附加的信息。whatis命令等同于使用man -f命令。
 
  语法格式
 
  whatis [参数]
 
  常用参数:
 
  其他命令 显示该命令的执行功能
 
  参考实例
 
  ls命令执行情况:
 
  [root@linux265 ~]# whatis ls ls                   
 
  (1)  - list directory contents ls                   
 
  (1p)  - list directory contents
 
  cp命令执行情况:
 
  [root@linux265 ~]# whatis cp cp                   
 
  (1)  - copy files and directories cp                   
 
  (1p)  - copy files
 
  chown命令执行情况:
 
  [root@linux265 ~]# 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
 

(编辑:西双版纳站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章