文件搜索命令locate,which,whereis,grep
2017-08-13 00:00
555 查看
摘要: Linux基本命令
1.locate
语法
locate 文件名
用途:在文件资料库里查找文件(无法查找到tmp目录下的文件)
2.which
语法
which 命令
用途:搜索命令所在目录及别名信息
3.whereis
语法
whereis [命令名称]
用途:搜索命令所在目录及帮助文档路径
4.grep
语法
grep -iv [指定字串][文件]
-i 不区分大小写
-v 排除指定字串
用途:在文件中搜寻字串匹配的行并输出
1.locate
语法
locate 文件名
用途:在文件资料库里查找文件(无法查找到tmp目录下的文件)
2.which
语法
which 命令
用途:搜索命令所在目录及别名信息
3.whereis
语法
whereis [命令名称]
用途:搜索命令所在目录及帮助文档路径
4.grep
语法
grep -iv [指定字串][文件]
-i 不区分大小写
-v 排除指定字串
用途:在文件中搜寻字串匹配的行并输出
相关文章推荐
- Linux学习之文件搜索命令(二)其他搜索命令 locate |which|whereis|grep
- linux常用命令-文件搜索命令-locate,which,whereis,grep
- *Linux常用命令学习2---(文件搜索命令locate find、命令搜索命令whereis which、字符串搜索命令grep、帮助命令man)
- linux中文件搜索命令(whereis,locate,which,find)
- Linux经常使用命令002之搜索命令locate、whereis、which、find、grep
- Linux常用命令002之搜索命令locate、whereis、which、find、grep
- 文件搜索命令 locate、find、whereis、which
- Linxu命令与文件的搜索 - which, whereis, locate, find
- linux中文件搜索相关的locate,find,whereis与which,grep的使用
- Linxu命令与文件的搜索 - which, whereis, locate, find
- Linux总结(七):文本搜索(grep)和文件搜索(locate,find,which,whereis)
- 五、Linux常用命令之文件搜索篇(which、whereis、find、locate、grep、man、info、whatis、--help、apropos、help)
- LinuxStudyNote(25)-Linux常用命令(4)-文件搜索命令(3)which、whereis命令搜索、grep文件内容查找
- linux笔记:搜索命令find,locate,which,whereis,grep
- Linux常用命令002之搜索命令locate、whereis、which、find、grep
- 搜索命令之locate,whereis,which
- Linux下which、whereis、locate、find 命令查找文件
- Linux下查找文件:which、whereis、locate、find 命令的区别
- shell端查找和搜索:which, whereis, locate, find and grep
- Linux下的五个查找命令:grep、find、locate、whereis、which