How to remove files that are over 1 day old

find /tmp/ -type f -mtime +1 -exec rm {} ;

source

Leave a Reply