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.
如何从当前目录中找到昨天创建/修改的文件?或前天,或例如。20131010?
列出最近 24 小时内修改的文件:
find . -maxdepth 1 -type f -mtime -1
列出在特定日期(在这种情况下为 10 月 8 日至 10 日)修改的文件:
find . -maxdepth 1 -type f -newermt 2013-10-08 ! -newermt 2013-10-11