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.
我需要找到正好一分钟在废纸篓文件夹中的文件。这些文件已在我的计算机上移动到该文件夹中。
我运行以下失败
find -atime n1m .
我通过命令将所有文件都放在目录中,即使是我刚刚创建的文件。似乎 -atime 选项不正确。
如何找到访问时间为一分钟的文件?
放下n. 手册页中的n代表一个数字。
n
find -atime 1m .
既然您提到您正在使用 zsh,我不妨建议一个特定于 zsh 的答案。要查找访问时间为分钟或更短的所有文件,可以使用以下命令:
$> ls *(.am-1)
我想你正在寻找
find -amin 1
n只是一个用数字替换的变量。
+neg+1表示大于 neg1完全表示 -neg-1表示小于
+n
+1
1
-n
-1