linux 命令中的find locate whereis which type 使用区别
时间:
2014-01-14 21:40:32
阅读:
519
评论:
收藏:
0
[点我收藏+]
- find 最强大,但参数也较多,需指定查找目录,如 find / -name “filename”
- locate 是一个快速查找命令,有预先索引好的数据库,由于数据库是定时更新,因此,结果上可能会有迟滞 和 错误。
- whereis 是一个根据环境变量查找可执行文件的命令,可能返回多个结果
- which 同whereis 但是返回的只是第一个结果
- type 查看命令的类型,bash builtin,还是其他,亦可输出命令的地址
linux 命令中的find locate whereis which type 使用区别
原文:http://www.cnblogs.com/ToDoToTry/p/3513644.html