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