RSS Feed for This PostCurrent Article

Write a command to find all of the files which have been accessed within the last 30 days.

find / -type f -atime -30 > December.files
This command will find all the files under root, which is ‘/’, with file type is file. ‘-atime -30′ will give all the files accessed less than 30 days ago. And the output will put into a file call December.files.

Trackback URL

  1. 2 Comment(s)

  2. By lohith on Oct 13, 2007 | Reply

    Please send required data.

  3. By Sushil on Jun 2, 2008 | Reply

    hi ,
    Can anyone tell me how to delete all files which is made 1 month before.

Post a Comment