Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How to list files that has last read-access older than 6 months? Then, how to delete them?
My filesystem seems to be mounted with:
/dev/sda3 on /home type ext4 (rw,relatime,data=ordered)
Here is how to list them (NB: 180 stands for 180 days):
find . -atime +180
Here is how to move them:
find . -atime +180 -print0 | xargs -0 mv --target-directory=../oldfiles/
Required, but never shown