How to recursively list subdirectories in Bash without using “find” or “ls” commands?

前端 未结 10 2110
情歌与酒
情歌与酒 2020-12-01 17:22

I know you can use the find command for this simple job, but I got an assignment not to use find or ls and do the job. How can I do th

10条回答
  •  醉梦人生
    2020-12-01 17:48

    The du command will list subdirectories recursively.

    I'm not sure if empty directories get a mention, though

提交回复
热议问题