Discussion Locked

Directory List

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to get a listing of directories and their sub-directories. My original plan was to pipe the output of ls but I don't see any switches that get directories only.

3 replies

by volksjager

Hi, how about using the find command. Try the following and pipe the output to a file of your choice.

find * -type d >filename

Hope this helps

This discussion is closed to new replies.