linux: find locate whereis which type

来源:互联网 发布:js鼠标悬停图片放大 编辑:程序博客网 时间:2024/06/06 09:03
  • find 最强大,但参数也较多,需指定查找目录,如 find / -name “filename” 
  • locate 是一个快速查找命令,有预先索引好的数据库,由于数据库是定时更新,因此,结果上可能会有迟滞 和  错误。
  • whereis 是一个根据环境变量查找可执行文件的命令,可能返回多个结果
  • which  同whereis  但是返回的只是第一个结果

  • type 查看命令的类型,bash builtin,还是其他,亦可输出命令的地址

http://www.chinaitlab.com/linux/administer/960730.html

0 0
原创粉丝点击