Find Files Accessed in Last 30 Days

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. This command is run in the background due to &.

Relevance Read:

Return to : - Unix System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.