whereis [options] [-BMS directory... -f] name...
locate the binary, source, and manual page files for a command 寻找文件,原始代码,二进制文件,或帮助文件等
-
常用选项
-b:Search only for binaries 只查找二进制文件 -m:Search only for manuals 只查找man手册帮助文件 -s:Search only for sources 只查找源代码文件
-
示例
[xzt7566@centos7-test ~]$ whereis -b ls ls: /usr/bin/ls [xzt7566@centos7-test ~]$ whereis -m ls ls: /usr/share/man/man1/ls.1.gz /usr/share/man/man1p/ls.1p.gz