简体   繁体   English

搜索x天未访问的文件

[英]search for files not accessed for x days

How can I find files in Linux that were not accessed for X days? 如何在Linux中找到X天访问的文件?

I found that command, but it will show files that were viewed for the last x days: 我找到了该命令,但它会显示最近x天查看过的文件:

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

使用-atime +60查看过去60天内未访问过的文件:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM