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?
 
ozoConnect With a Mentor Commented:
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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
All Courses

From novice to tech pro — start learning today.