Routing the world

Routing & IT System Administration

Archive for October 2010

Delete files older than a year, a month, a week…

with 2 comments

Recently I need to purge my Backup Disk to release new available space. I found this command to delete files older than 364 days. You can change this value to the one you need.

find -maxdepth 1 -mtime +364 *-exec rm -f {} \;

Written by Root

October 13, 2010 at 10:06

Posted in Linux

Tagged with

%d bloggers like this: