The POSIX find command searches filesystem directory trees based on file attributes including byte size, file type (regular file, directory, symlink), modification time, and permissions.
find Command Examples
# 1. Find all regular files greater than 100 Megabytes in /var/log
find /var/log -type f -size +100M
# 2. Find and delete empty directories recursively
find . -type d -empty -delete
# 3. Find files modified in the last 7 days matching *.log
find /var/log -name "*.log" -mtime -7
Comments and corrections