Name & Type

Find files by exact name
find /etc -name "hostname" -type f 2>/dev/null
Case-insensitive name search
find /etc -iname "*.conf" -type f 2>/dev/null | head -20
Find by extension — all AsciiDoc files in domus-captures
find ~/atelier/_bibliotheca/domus-captures/docs/modules/ROOT -name "*.adoc" -type f | head -20
Find only directories
find ~/atelier/_bibliotheca/domus-captures/docs/modules/ROOT/pages -type d
Find only symlinks
find /etc/alternatives -type l 2>/dev/null | head -10
Limit search depth — maxdepth (no recursion past N)
# Only immediate children of /etc — no recursion
find /etc -maxdepth 1 -type f -name "*.conf" 2>/dev/null | head -10
Minimum depth — skip top-level, start from depth 2
find ~/atelier/_bibliotheca/domus-captures/docs/modules/ROOT/pages -mindepth 2 -maxdepth 2 -type d
NOT matching — exclude a pattern with ! or -not
find ~/atelier/_bibliotheca/domus-captures/docs/modules/ROOT/partials -type f \
  ! -name "*.adoc"
OR conditions with grouping — find .adoc OR .yml files
find ~/atelier/_bibliotheca/domus-captures/docs -type f \
  \( -name "*.adoc" -o -name "*.yml" \) | head -20
Regex on full path — match files in any YYYY/MM directory
find ~/atelier/_bibliotheca/domus-captures/docs/modules/ROOT/pages \
  -regextype posix-extended \
  -regex '.*/[0-9]{4}/[0-9]{2}/.*\.adoc' | head -10