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
使用-atime +60
查看过去60天内未访问过的文件:
find /home/you -iname "*.pdf" -atime +60 -type f
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.