简体   繁体   中英

Find files that were not accessed in the last x days

how can i find all files that were not accessed in the last 10 days with extension ".png"?

This is a question of my homework but i'm not getting it right在此处输入图像描述

I tried find / -type f -mtime -10 -name "*.png" but it's not right

You should use -atime for access time and +10 for greater than 10 days:

find / -type f -atime +10 -name "*.png"

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.

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