文件查找
简介
which :命令查找
find: 文件查找,针对文件名
locate:文件查找,依赖数据库
命令文件查找
查找ls 命令的位置
which ls //从PATH环境变量
或者 whereis vim
任意文件 find
语法
find [path...] [options] [expression] [action]
命令 路径 选项 表达式 动作
按文件名
[root@qianfeng ~]# find /etc -name hosts
[root@qianfeng ~]# find /etc -iname