Link to home
Start Free TrialLog in
Avatar of tusken
tusken

asked on

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
Avatar of ozo
ozo
Flag of United States of America image

find . -print | perl -pe 's#[^/]*/#   #g'
Avatar of rbr
rbr

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.
you may use "ls -l|more" to obtain a directory listing.
Avatar of tusken

ASKER

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!!!
You seem to imply that there's room for the answer to be better suited.
Was there something you would have preferred to change?
Avatar of tusken

ASKER

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 :-)


ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tusken

ASKER

Thx a lot!!!