whatis

whatis

查询一个命令执行什么功能

补充说明

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 ~]# whatis cp
cp                   (1)  - copy files and directories
cp                   (1p)  - copy files

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

[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) - 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

若文章对你有帮助,可以点赞或打赏支持我们。发布者:Aurora,转载请注明出处:http://61.174.243.28:13541/AY-knowledg-hub/whatis/

(0)
AuroraAurora站点维系者
上一篇 2024年 1月 3日 下午5:54
下一篇 2024年 1月 3日 下午5:54

相关推荐

  • cd

    文章目录cd概要主要用途参数选项返回值例子注意 cd 切换用户当前工作目录。 概要 cd [-L|[-P [-e]]] [dir] 主要用途 切换工作目录至dir。其中dir的表示…

    入门教程 2023年 12月 7日
  • sshpass

    文章目录sshpass补充说明安装语法选项实例 sshpass 免交互 SSH 登录工具。 补充说明 免交互 SSH 登录工具,但不要用在生产服务器上。 如果你想自动在 SSH 登…

    入门教程 2024年 3月 11日
  • arp

    文章目录arp补充说明语法选项参数实例 arp arp 命令用于显示和修改 IP 到 MAC 转换表 补充说明 arp 命令 是 Address Resolution Protoc…

    入门教程 2023年 12月 6日
  • dnf

    文章目录dnf补充说明安装 DNF 包管理器总结 dnf 新一代的RPM软件包管理器 补充说明 DNF 是新一代的rpm软件包管理器。他首先出现在 Fedora 18 这个发行版中…

    入门教程 2023年 12月 7日
  • CSV 文件

    CSV(Comma-Separated Values,逗号分隔值,有时也称为字符分隔值,因为分隔字符也可以不是逗号),其文件以纯文本形式存储表格数据(数字和文本)。 CSV 是一种…

    2023年 5月 16日
  • systemctl

    文章目录systemctl补充说明实例 systemctl 系统服务管理器指令 补充说明 systemctl命令 是系统服务管理器指令,它实际上将 service 和 chkcon…

    入门教程 2024年 3月 11日
  • restorecon

    文章目录restorecon补充说明语法选项实例 restorecon 恢复文件的安全上下文 补充说明 restorecon命令 用来恢复SELinux文件属性即恢复文件的安全上下…

    入门教程 2024年 3月 4日
  • head

    文章目录head概要主要用途选项参数返回值例子注意 head 显示文件的开头部分。 概要 head [OPTION]… [FILE]… 主要用途 在未指定行数时默认显示前1…

    入门教程 2023年 12月 15日
  • lsof

    文章目录lsof补充说明语法选项实例 lsof 显示Linux系统当前已打开的所有文件列表 lsof -p pid 补充说明 lsof命令 用于查看你进程打开的文件,打开文件的进程…

    入门教程 2023年 12月 19日
  • halt

    文章目录halt补充说明语法选项实例 halt 关闭正在运行的Linux操作系统 补充说明 halt命令 用来关闭正在运行的Linux操作系统。halt命令会先检测系统的runle…

    入门教程 2023年 12月 15日

发表回复

登录后才能评论
Translate »