Linux instruction learning

linux instruction learning

file search command

find command

Basic format: find path expression
1. Find by file name

(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. Find by file characteristics

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326567752&siteId=291194637