gpt4 book ai didi

linux - 如何在 Linux 中使用命令 "find . -type f -ls"获取按时间排序的列表(ASC/DESC)?

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:16:07 27 4
gpt4 key购买 nike

如何在 Linux 中使用命令“find . -type f -ls”获取按时间排序的列表(ASC/DESC)?

  1. 我想使用查找命令。
  2. 我想得到类似使用“ls”的结果。

find . -type f -ls


[原样]

5113588 0 -rwxr-xr-x 1 root root 0 Jul 31 15:26 ./bbb.txt

5113222 0 -rwxr-xr-x 1 root root 0 Jul 17 13:18 ./aaa.txt


[ future ]

5113222 0 -rwxr-xr-x 1 root root 0 Jul 17 13:18 ./aaa.txt

5113588 0 -rwxr-xr-x 1 root root 0 Jul 31 15:26 ./bbb.txt



如果不可能,我如何使用任何其他命令获取包含这些的列表?

1. 文件大小
2.时间
3.文件路径及名称
4. 包含子目录


提前谢谢你。

最佳答案

查找/-type f -printf "\n%AD %AT %p"|头-n 11 | du -sh

关于linux - 如何在 Linux 中使用命令 "find . -type f -ls"获取按时间排序的列表(ASC/DESC)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51607217/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com