标签:linux 查找 find slocate grep which whereis
| 命令 | 介绍 | 常用参数 |
| which | 可执行文件或命令查找 查找顺序为:①别名(alias) ②$PATH | |
| whereis | 比which更全 | |
| slocate | 在数据库中查找,由于数据库不是实时更新,有时候需要手动执行updatedb更新数据库 | |
| locate | -r(uler) ‘‘ 单引号中加正则表达式 | |
| find | 从指定目录开始,直接查找硬盘 | –user –type –name –group –perm –size –mtime |
| grep | 按照字符串查找 | -i ignore大小写 -v --invert-match -w 匹配单词 --color |
本文出自 “人生一首断章” 博客,请务必保留此出处http://duanzhang.blog.51cto.com/9200924/1728583
标签:linux 查找 find slocate grep which whereis
原文地址:http://duanzhang.blog.51cto.com/9200924/1728583