北京网络营销初级培训seo网站优化外包
一、命令简介
whatis
命令用于查询命令、函数、文件等的基本用途,查询结果只是一句简短的描述。
例如
$ whatis ls
ls (1) - list directory contents
返回关于 ls 命令的简短描述。这个结果实质是来自于man手册的一个章节,在较新的Linux 发行版中已经使用 man -f command
命令取代 whatis command
命令了。
二、命令参数
whatis command
三、命令示例
whatis ls
ls (1) - list directory contentswhatis mdadm
mdadm (8) - manage MD devices aka Linux Software RAIDwhatis locate
locate (1) - find files by name, quicklywhatis chmod
chmod (1) - change file mode bits
chmod (2) - change permissions of a filewhatis chgrp
chgrp (1) - change group ownershipwhatis useradd
useradd (8) - create a new user or update default new user informationwhatis userdel
userdel (8) - delete a user account and related fileswhatis tar
tar (1) - an archiving utility