我想知道 linux 中是否有一种方法可以查看我在特定日期编辑的文件列表。我知道如果我执行 ls -lt 它将列出上次修改的文件夹和文件,但我想查看子文件夹等中的文件列表,并且 ls -lt 仅适用于我所在的当前文件夹(不是子文件夹中的文件)。我例如,在 Windows 资源管理器上知道您可以按修改日期搜索文件,所以我认为在 linux 中会有类似的东西,但看不到如何做到这一点?
问问题
341 次
3 回答
1
这甚至会进入子目录:
ls -lRt
要排除任何特定目录,请使用:
ls | tee | grep -Fxv "folder_name" | xargs ls -lRt
于 2012-12-12T11:37:10.707 回答
1
这是一个小例子,这可能会对您有所帮助。
ls -lRc | grep "Nov 28"
小说明
-l Shows you huge amounts of information (permissions, owners, size, and when last modified.
-R Includes the contents of subdirectories.
-c Use time of last modification of the i-node (file created, mode changed, and so forth) for sorting (-t) or printing (-l or -n).
于 2012-12-12T11:45:55.903 回答
0
于 2012-12-12T11:37:17.510 回答