locate : 查找文件 (相当于find -name)
locate yum.conf 查找文件(从文件库查找,新建文件查找不到,使用updatedb命令更新后才能查到)
which : 查找命令位置
which ls 查找ls命令位置 ,可以看到别名
whereis :查找命令位置
whereis ls 查找ls命令位置 ,可以查到帮助文档
grep :从指定文件查找字符串
-i 忽略大小写
-v 排除 字符串
grep -i init /etc/yum.conf 在文件yum.conf 查找 包含init的行数