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/