Find the answer to your Linux question:
Results 1 to 3 of 3
Hello all, I know about du -h, I have even looked at du -Sh... What I am doing is looking for directory sizes so i can implement disk quotas. But ...
  1. #1
    Linux Newbie AboveNBeyond's Avatar
    Join Date
    Mar 2007
    Posts
    120

    Directory size & print question...

    Hello all,
    I know about du -h, I have even looked at du -Sh...

    What I am doing is looking for directory sizes so i can implement disk quotas. But what I would like to see is a output of just the user directory and size...

    example...
    1.2g ./home/user1
    589k .home/user2

    NOT like this...
    1.2g ./home/user1
    575 ./home/user1/public
    674 ./home/user1/docs
    589k .home/user2

    Basically the above commands do not print the user dir and it's size, including all subdirectories.

  2. #2
    Linux Newbie AboveNBeyond's Avatar
    Join Date
    Mar 2007
    Posts
    120
    I think I got it...

    du -hs "s supreses the output.

  3. #3
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    du /home/ -h --max-depth=1

Posting Permissions

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