A command to show the directory structure

I want to know if there a command in UNIX like  the "tree" command  in DOS where you can see all the structure of your directory and subdirectories....

that' its

Thx in advance
tuskenAsked:
Who is Participating?
 
ozoCommented:
find . -type d -print | perl -pe 's#[^/]*/#   #g'
  or
du -r | perl -pe 's#[^/]*/#    #g'
  (which shows the tree backwards)
0
 
ozoCommented:
find . -print | perl -pe 's#[^/]*/#   #g'
0
 
rbrCommented:
Another way if you don't have perl use
du.
If you want an output like DOS there is no such program. You have to write your own.
0
Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

 
agolanCommented:
0
 
sloweCommented:
you may use "ls -l|more" to obtain a directory listing.
0
 
tuskenAuthor Commented:
The answer that suited the best my question is the one from OZO so i'll reopen my question and if ozo wants to answer it i'll give those points to him

For the others...... thx anyway!!!
0
 
ozoCommented:
You seem to imply that there's room for the answer to be better suited.
Was there something you would have preferred to change?
0
 
tuskenAuthor Commented:
No sorry (english is not my base language!!) i meant that your answer was the one i was looking for EXACTLY...so no it was alright... but if i would like just to have the directory and not all the file in it what would the command be like???

thx in advance ....and still learning unix AND english :-)


0
 
tuskenAuthor Commented:
Thx a lot!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.