Linux指令学习

liunx指令学习

文件查找指令

find命令

基本格式: find path expression
1. 按文件名查找

(1) find / -name httpd.conf #在根目录下查找文件
                httpd.conf,表示在整个硬盘查找
(2) find /etc -name httpd.conf #在/etc、目录
    下的httpd.conf
(3) find /etc -name '*test*' #使用通配符
    *(0或者任意多个)。表示在/etc目录下查找文件
    名中含有字符串"test"的文件
(4)find . -name 'test*' #表示当前目录下查找文件名
  1. 按文件特征查找

猜你喜欢

转载自blog.csdn.net/luohongtuCSDN/article/details/80252202