whereis which type find

1. whereis  name

whereis命令只能用于搜索程序名,而且只搜索二进制文件(参数-b)、man说明文件(参数-m)和源代码文件(参数-s)。如果省略参数,则返回所有信息。


2. which name
只从PATH 里查找程序名字

3. find
从整个linux 系统里查找 或指定目录查找
可查找条件
-name 根据名字查找,
-iname 名字不区分大小写,
find --help 具体的

4. type 判断命令是 内置变量(shell 内置的) 还是程序变量(由某个程序包安装)






原文地址:https://www.cnblogs.com/brucewhite/p/11622069.html