Search by File
- Find/-name http.conf # finds the file httpd.conf in the root directory, representing the entire disk lookup
- Find/etc-name-name httpd.conf #在/etc directory to find files http.conf
- Find/etc-name 'SRM' # uses wildcard characters (0 or any number). Find files in the/etc directory that contain the string ' SRM ' in the file name
- Find. Name ' SRM ' #b表示在当前目录下查找文件开头是字符串 ' SRM ' files
Find by File feature
- Find/-amin-10 # finds files accessed in the last 10 minutes of the system (access time)
- Find/-amin-2 #查找在系统中最后48小时访问的文件
- Find/-empty # finds files or folders that are empty in the file system
- Find/-group Cat # finds files that belong to group Cat in the system
- Find/-mmin-5 # finds files that have been modified in the last 5 minutes of the system (modify time)
- Find/-mtime-1 # finds files that have been modified in the last 24 hours of the system
- Find/-user Fred # finds files in the system that belong to Fred this user
- Find/-size +10000c #查找大于10000字节的文件 (c: Bytes, W: Double word, k:kb, M:MB,G:GB)
- Find/-size-1000k #查找出小于1000kB的文件
How Linux finds files using the Find command