Option Examples

Option Example Description
-type find . -type d Find only directories
-name find . -type f -name "*.txt" Find file by name
-iname find . -type f -iname "hello" Find file by name (case-insensitive)
-size find . -size +1G Find files larger than 1G
-user find . -type d -user jack Find jack's file
-regex find /var -regex '.*/tmp/.*[0-9]*.file' Using Regex with find. See regex
-maxdepth find . -maxdepth 1 -name "a.txt" In the current directory and subdirectories
-mindepth find / -mindepth 3 -maxdepth 5 -name pass Between sub-directory level 2 and 4
Comments