Skip to content

Shell - Find Command

Examples

Delete files with mtime > 60 days:

find /data -type f -mtime +60 -delete

List empty directories with mtime > 30 days:

find /data -type d -empty -mtime +30

List files with size > 1000 on / filesystem:

find / -xdev -size +1000
Back to top