Write a command to find all of the files which have been accessed within the last 30 days.
By admin on Jun 29, 2007 in UNIX Interview Questions, Unix/Linux Interview Questions
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.



2 Comment(s)
By lohith on Oct 13, 2007 | Reply
Please send required data.
By Sushil on Jun 2, 2008 | Reply
hi ,
Can anyone tell me how to delete all files which is made 1 month before.