Skip to content
Advertisement

search for files not accessed for x days

How can I find files in Linux that were not accessed for X days?

I found that command, but it will show files that were viewed for the last x days:

$ find /home/you -iname "*.pdf" -atime -60 -type -f

Advertisement

Answer

Use -atime +60 to see files that have not been accessed within the last 60 days:

find /home/you -iname "*.pdf" -atime +60 -type f
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement