Find/-name httpd.conf Find/ -name access_log 2>/dev/null find/etc-name ' *srm* ' Find /-amin-10 # Lookup in the Department Last 10 minutes of access to files find /-atime-2 # Find files accessed in the last 48 hours of the system find /-mmin-5 # Find files modified in the last 5 minutes of the system find /-mtime-1 #查找在系 The last 24 hours in the system find/ -cmin-5 # Find files that have been changed in the last 5 minutes of the systems Find/ -ctime-1 #查找在系统中最后24小时里被改变状态的文件 Find/-user RE Da #查找在系统中属于fred这个用户的文件 Find /-not-user Reda #查找在系统中不属于FRED这个用户的文件 find /-group redagrp # Find text that belongs to REDAGRP group in the system Pieces Find/-gid 501 #查找系统中属于组id为501的文件 Find/-user fred-a-group redagrp Find/-user reda-o-user tracy
find/-nouser #查找在系统中属于作废用户的文件 Find/ -empty # Find empty files in system or empty folders find /-false #查找系统中总是错误的文件 Find/ -size +5k #查找系统中大于5k字节的文件
<pre name= "code" class= "HTML" > Find/-size +5m #查找系统中大于5M字节的文件
Find/-size +5c #查找系统中大于5字节的文件 Find/-perm +6000 Find/-type b file type: B Block (buffered) device. C-character device. D directory. P Famous pipe (FIFO). F rule file. L Symbolic link. s socket. Find/-maxdepth 2-name Fred Find/tmp-size +10000000c-and-mtime +2 Find/-user reda-or-user Tracy Find/tmp! -user Reda Find/-name "httpd.conf"-ls Find/-user reda-exec ls-l {} \; Find/-user Reda-ok #确认后执行 Find/-user Reda | Xargs ls-l
Linux Find command