Skip to main content

find command

Find file based on filename

find [path] -type f -name [filename]

Find a file hello.txt in the current and its sub directories.

find . -type f -name hello.txt

find file with permissions WX

find . \( -perm -o w -perm -o x \) -type d -exec ls -la 2>/dev/null {} \;