- find ---- - Read find man page for interesting options: - All numeric options take optional + (more than) or - (less than) - Combine selector options (primaries) via: () ! -false -not -and -or -d Depth-first (for use w/rm and such, to do children first) -f Roots to start from (default is all params after options and before selectors -- can have multiple roots) -s Sort filenames within each directory -print Space separated filenames (default) -print0 Null separated filenames, for use with xargs -0 -delete Delete files and dirs (implies depth-first) -exec Run command on file or batches of files (like xargs) -execdir -exec but set CWD first -ok -exec but prompt first -okdir -ok but set CWD first -ls Output format of ls -dgils -name Filename matches pattern -iname Case-insensitive -name -path Path matches pattern -ipath Case-insensitive -path -regex Path, including filename, matches pattern -iregex Case-insensitive -regex -Bmin n Files created n mins ago -Bnewer file Files created since file was modified -Btime n[smhdw] Files created n days (secs, mins, hours, days, weeks) ago -amin n Same, but for files accessed then -anewer file -atime n[smhdw] -amin n Same, but for files accessed then -anewer file -atime n[smhdw] -cmin n Same, but for file status info changed then -cnewer file -ctime n[smhdw] -mmin n Same, but for file contents modified then -mnewer file -mtime n[smhdw] -newer file Files modified since file modified -newer[aBcm][aBcmt] file Files accessed/created/changed/modified since file was accessed/created/changed/modified or since the specified date-time spec (as the quoted filename). -empty Empty files -size n[ckMGTP] Size is n chars, kB, MB, GB, TB, PB -type [bcdflps] File is block special/char special/dir/file/link/pipe/socket -fstype type Files on specified file system type -user user Files owned by user -nouser Files owned by unknown user -group group Files owned by group -nogroup Files owned by unknown group -perm Files w/various permission bits, setuid, etc. set -flags Files w/various permission bits, setuid, etc. set or not set -links n Files w/n links -depth n Files n directory levels deep -maxdepth n Max depth (0 = CLI args only) -mindepth n Min depth -prune Skip subdirectory