Linux 查找指定日期时间区间的文件
sudo find -type f -newermt '2021-02-05 10:30:00' ! -newermt '2021-02-05 10:32:00' -exec ls -rtlh {} \;
本文介绍了一种使用Linux命令行工具find来查找特定日期时间区间内的文件的方法。通过sudo find命令结合-type f-newermt参数,可以精准定位到指定时间段创建或修改的文件。
Linux 查找指定日期时间区间的文件
sudo find -type f -newermt '2021-02-05 10:30:00' ! -newermt '2021-02-05 10:32:00' -exec ls -rtlh {} \;
2393
5298
1341

被折叠的 条评论
为什么被折叠?