Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
比如说,我怎样才能找到 100 个最旧的访问文件?我尝试了以下方法,但它只是打印随机访问的文件。
find /home/you -iname "*.pdf" -atime -100000 -type f | tail -n100
find /home/you -iname '*.pdf' -printf '%A@ %p\n' | sort -n | head -n 100
你可以使用stat命令
stat
stat -c '%X %n' *.pdf | sort -n | head -n100