# Find by filename
find / -name passwords.txt
# Find by extension
find / -iname *.txt
# Fast way to find files
locate passwords.txt
# Find all SUID and GSID files
find / -type f -perm -04000 -ls 2>/dev/null
find / -type f -a \( -perm -u+s -o -perm -g+s \) -exec ls -l {} \; 2> /dev/null
find / -perm -u=s -type f 2>/dev/null
# Search files with capabilities
getcap -r / 2>/dev/null
# Find files and folders with write permission
find / -writable -ls 2>/dev/null | grep -v '/sys\|/proc\|/run\|/snap'