If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Unix Directory tree

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-03, 11:45
Asad Asad is offline
Registered User
 
Join Date: Jun 2003
Location: Dallas
Posts: 5
Unhappy Unix Directory tree

How would I display a directory structure including all its sub-directories and their relative file size information in a tree like format?

Thanks
Reply With Quote
  #2 (permalink)  
Old 09-15-03, 17:26
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,456
Did you try:

find /mydir -ls

where /mydir is the directory you want to list.

__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
  #3 (permalink)  
Old 09-15-03, 17:41
Asad Asad is offline
Registered User
 
Join Date: Jun 2003
Location: Dallas
Posts: 5
Quote:
Originally posted by LKBrwn_DBA
Did you try:

find /mydir -ls

where /mydir is the directory you want to list.

Yes, However, what I am really looking for is a way to print out the tree like structure of a given dir like below:

/
----> /home
-------------->/home/aaa
--------------->/home/test
------------------------>/home/test/7.1
------------------------>/home/test/7.2
--------------->/home/prod
--------------->/home/lastone
----->/opt
..
..

Thanks for your help
Reply With Quote
  #4 (permalink)  
Old 10-05-03, 06:35
fla5do fla5do is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 138
use the du command, Its neerly what you want
Reply With Quote
  #5 (permalink)  
Old 10-06-03, 11:56
Asad Asad is offline
Registered User
 
Join Date: Jun 2003
Location: Dallas
Posts: 5
Smile

Quote:
Originally posted by fla5do
use the du command, Its neerly what you want
Thank You.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On