find . -type d -empty -print0 | xargs -0 rmdir
Showing posts with label find. Show all posts
Showing posts with label find. Show all posts
Find files older than 30 days
find . -type f -mtime +30 -exec ls -l {} \;
Find files and sub-directories that are older than 30 days in the working directory and list them. By changing the value for -mtime, you can adjust the time.
Find files and sub-directories that are older than 30 days in the working directory and list them. By changing the value for -mtime, you can adjust the time.
Subscribe to:
Posts (Atom)