Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2003
    Location
    Dallas
    Posts
    5

    Unhappy Unanswered: 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

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713
    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

  3. #3
    Join Date
    Jun 2003
    Location
    Dallas
    Posts
    5
    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

  4. #4
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    138
    use the du command, Its neerly what you want

  5. #5
    Join Date
    Jun 2003
    Location
    Dallas
    Posts
    5

    Smile

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •