在这里的另一篇文章:List file using ls command in Linux with full path
该问题的答案如下:
ls -lrt -d -1 $PWD/{*,.*}
但即使我向它添加-R,这也不会递归地起作用。有人可以请我提供正确的语法,以递归方式获得相同的结果吗?谢谢
您希望find命令找到文件。你正在寻找类似的东西:
find
$ find . | xargs ls -lt -d -1