Saturday, 20 December 2008

Find directories which are last accessed and modified x many days ago

Find everything in your home directory modified in the last 24 hours :

find $HOME -mtime -1

Find everything in your home directory modified in the last seven days :


find $HOME -mtime -7

Find everything in your home directory that have NOT been modified in the last 7 days :


find $HOME -mtime +7


Find everything in your home directory that have NOT been modified in the last year :


find $HOME -mtime +365

Find everything in your home directory that have been modified exactly one year ago :


find $HOME -mtime 365

No comments:

Post a Comment

Tweets by @sriramperumalla