Find Command Cheatsheet
Find things by name
find /path/to/search -name filename
Find things by name (case-insensitive)
find /path/to/search -iname filename
Find only files by name
find /path/to/search -name filename -type f
must notice that " " quotes, you must use it if you want to use wildcards otherwise it will not find , and also f in type stand for file
Find only directories by name
find /path/to/search -name dirname -type d
Find file with insecure permission
find / -writable -type d 2>/dev/null
Find all symlinks
find /path/to/search -type l
Find things by it's owner
find /path/to/search -user owner
Find executable files
find /path/to/search -type f -executable
Find SUID files
find /path/to/search -perm -4000
Find things changed in the last 24 hours
find /path/to/search -ctime -1
Find files bigger than X Size
find /path/to/search -size +<size>
$ find ~ -size +5000M
Last updated