Linux下的查找命令使用指导
来源:互联网 发布:淘宝联盟 百度百科 编辑:程序博客网 时间:2024/06/16 16:56
在Linux下,常见的有4个查找命令,分别是which,whereis,locate和find命令。
1、which
在$PATH变量指定的路径中查找文件
详见which命令
2、whereis
基于"/var/lib/mlocate/mlocate.db"数据库,在几个指定目录中,查找二进制文件,帮助文档和源代码文件
详见whereis命令
3、locate
基于"/var/lib/mlocate/mlocate.db"数据库查找文件,速度会比find快很多
详见locate命令
4、find
最全功能最复杂的查找命令
详见find命令
因而,我们使用查找命令的顺序是首先根据具体情况,选择which,whereis,locate命令,如果都不能实现目标,那么最后使用find命令
1、which
在$PATH变量指定的路径中查找文件
详见which命令
2、whereis
基于"/var/lib/mlocate/mlocate.db"数据库,在几个指定目录中,查找二进制文件,帮助文档和源代码文件
详见whereis命令
3、locate
基于"/var/lib/mlocate/mlocate.db"数据库查找文件,速度会比find快很多
详见locate命令
4、find
最全功能最复杂的查找命令
详见find命令
因而,我们使用查找命令的顺序是首先根据具体情况,选择which,whereis,locate命令,如果都不能实现目标,那么最后使用find命令
0 0
- Linux下的查找命令使用指导
- linux下的查找命令
- Linux下的查找 命令
- Linux下的查找命令
- linux下的查找命令
- linux下的查找命令
- linux 下的查找命令
- Linux下的查找命令
- linux下的查找命令
- linux下find(文件查找)命令的使用
- Linux下find查找命令使用
- 【Linux】Linux下不同的”查找“命令
- Linux下查找命令
- Linux下查找命令
- linux下查找命令
- linux下的查找文件的命令
- linux下的5个查找命令
- Linux下查找进程的命令
- Bitmap Allocation与重用
- 浏览器web播放rtsp视频流解决方案(chrome/IE/firefox/360等)
- 在vs10中处理多线程MFC遇到的问题
- solr查询语法
- Problem 2072 Count
- Linux下的查找命令使用指导
- Baidu Map开发示例
- 【手势交互】6. 微动VID
- HDU 3336 Count the string(KMP)
- HDU 3046 Pleasant sheep and big big wolf(最小割)
- Hibernate ehcache配置二级缓存
- iOS int long NSInteger 入门与兼容问题讲解,让你秒懂
- 配置文件工具类
- UILable写出类似Cell的UITableViewCellStyleSubtitle状态下效果