Lab 13: find — Locating Files
Objective
Step 1: Find by Name
find /etc -name 'passwd' 2>/dev/null/etc/pam.d/passwd
/etc/passwd# Wildcard: all .conf files in /etc
find /etc -name '*.conf' 2>/dev/null | head -5/etc/mke2fs.conf
/etc/sysctl.conf
/etc/ld.so.conf.d/x86_64-linux-gnu.conf
/etc/ld.so.conf.d/libc.conf
/etc/nsswitch.confStep 2: Limit Search Depth
Step 3: Find by Type
Step 4: Find by Size
Step 5: Find by Modification Time
Step 6: Find by Permissions (Security Audit)
Step 7: find with -exec (Run Commands on Results)
Step 8: Capstone — Security Filesystem Audit
Summary
find Option
Meaning
Last updated
