如何用shell遍历一个目录下的所有子目录

2025-03-14 05:17:23
推荐回答(1个)
回答1:

find . -type d
这个命令可以列出所有子目录

find .
这个命令可以列出所有子目录及其当中的文件