find PATH CONDITIONS ACTIONS
-name "*.c"
-user jonathan
-nouser
search for things that are files
-type f
search for things that are directories
-type d
search for things that are symlinks
-type l
-maxdepth 2
-regex PATTERN
Exactly 8 512-bit blocks
-size 8
Smaller than 128 bytes
-size -128c
Exactly 1440KiB
-size 1440k
Larger than 10MiB
-size +10M
Larger than 2GiB
-size +2G
-newer file.txt
m
odified newer than file.txt
-newerm file.txt
c
hange, m
odified, B
create
-newerX file.txt
t
imestamp
-newerXt "1 hour ago"
execute rm on found items
-exec rm {} \;
print found items
-print
delete found items
-delete
find . -name '*.jpg' -exec rm {} \;
find . -newerBt "24 hours ago"
In the current folder, find files that are readable, executable have a size of 1033 bytes, then send the files found over to cat.
find . -type f -readable ! -executable -size 1033c -exec cat {} \;
In the current folder, find everything that has a size of 33 bytes, is owned by group bandit6 and user bandit7, redirect errors to /dev/null and send the stuff found over to cat.
find . -size 33c -group bandit6 -user bandit7 2> /dev/null -exec cat {} \;