首页 > 其他 > 详细

linux 命令中的find locate whereis which type 使用区别

时间:2014-01-14 21:40:32      阅读:519      评论:0      收藏: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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!