Find command
Command format: Find [Search Range] [search criteria]
#搜索文件使用
Example: Find/-name Install.log
#避免扩大搜素的范围, wasting system resources
#-name can only find the name of the file, need a fuzzy match, you can use wildcard characters, but the wildcard is a complete match
Linux wildcard characters
* Any Content
? Any one character
[] matches any one of the characters in parentheses
Note: in the process of using wildcards, "" must be added to prevent the system from identifying
-Find/root-iname Install.loG
#不区分大小写
-find/root-user Root
#按照所有者去搜索
-find/root-nouser
#查找没有所有者的文件
-find/var/log/-mtime +10
#查找10天前修改的文件
-10 files modified within 10 days
10 files modified on the 10th day
+10 files modified 10 days ago
Atime File access time
CTime changing file attribute time
Mtime Modifying file attribute time
-find. -size 20k
#按照文件大小搜索
-20k less than 20K
20k equals 25K
+20k Greater than 25K
4-3 Find File Search command in Linux