Find

From LinuxSwords Wiki

Jump to: navigation, search

Delete all files of a certain type

To delete all Files called Thumbs.db in the current directory and its subdirectories enter following oneliner

find . -name Thumbs.db -exec rm -f {} \;

Delete files older than 3 days

find path -type f -mtime +3 -exec rm {} \;
Personal tools