Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get a directory tree 1

Status
Not open for further replies.

tdfreeman

MIS
Mar 28, 2002
85
US
I am trying to get a list of just the directories under my current directory. I tried ls -R but that gave me files also. When I use the -d option with the ls command I only get the current directory. HELP!!

Basically I want results like you get when you type "tree" at a DOS prompt.

Thank you in advance for your help. Thank you for your help.

Tammy
 
for ALL the subdirectories under the CURRENT dir:

find . -type d vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top