一.which 命令

Shell 的which 命令可以找出相关命令是否已经在搜索路径中。

$ which git
/usr/bin/git

二.whereis 命令

whereis 命令搜索更大范围的系统目录,和Shell 的搜索路径无关。

$ whereis git
git: /usr/bin/git /usr/share/man/man1/git.1.gz

三.locate 命令

locate 的数据库通常由updatedb 命令在每天晚上重新生成,这个命令由cron来运行。 因此,执行一次locate 的结果不是总能够反映出文件系统新近的变化。

$ locate git
/etc/bash_completion.d/git
/home/Licw/.PyCharm2016.1/config/options/git.xml
/home/Licw/.config/google-chrome/Default/Local Storage/https_github.com_0.localstorage
/home/Licw/.config/google-chrome/Default/Local Storage/https_github.com_0.localstorage-journal
/home/Licw/.fonts/adobe-fonts/source-code-pro/.git
/home/Licw/.oh-my-zsh/.git

最新文章

  1. ABP(现代ASP.NET样板开发框架)系列之2、ABP入门教程
  2. 如何用代码读取Office Online Server2016的文档的备注信息
  3. linux设备模型
  4. 二模14day2解题报告
  5. MAC中Django中runserver提示Can't connect to local MySQL server through socket '/tmp/mysql.sock错误
  6. Android基于XMPP的即时通讯3-表情发送
  7. fis3使用环境
  8. 读书笔记——《图解TCP/IP》(4/4)
  9. LINQ to SQL 建立实体类
  10. 异常 ORA-00257: archiver error. Connect internal only, until freed
  11. 使 httpClient 支持中文
  12. ffmpeg.c函数结构简单分析(画图)
  13. Java 面试知识点解析(二)——高并发编程篇
  14. 401 experience
  15. 将markdown文档使用gulp转换为HTML【附带两套css样式】
  16. admin-5
  17. Docker中使用Tomcat并部署war工程
  18. 更改了ssh文件下,还没有权限
  19. weblogica
  20. Trie树分词

热门文章

  1. 如何让Log4net日志文件按每月归成一个文件夹,StaticLogFileName参数的用法
  2. (转载)SQL去除回车符,换行符,空格和水平制表符
  3. mysql慢查询日志分析工具 mysqlsla(转)
  4. Windows下FFmpeg各版本库文件下载
  5. linux
  6. mysql 导出select语句结果到excel文件等
  7. mongoDB的安装(一)
  8. 在Azure上实现Linux Server故障转移
  9. 第21章 java线程(1)-线程初步
  10. 前端之css