Simple Admin Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheJimmy
    ICQ- five seven 0 2 5 5 0
    • Jan 2001
    • 10747

    #1

    Simple Admin Question

    I know how to find out basic space utilization on a box with the

    df -k command

    but how do I find out what /usr (s) are taking up the most space without having to dig through all their folders ?


    thanks in advance...
    Investor with 5m - 15m USD to invest. Do you have a site or network of sites earning 50k - 200k a month income? Email your contact and preliminary data to: domain.cashventures (at) gmail.com....Please...no tire kickers...serious offers and inquiries only.
  • Andrew-at-ENet
    Confirmed User
    • Sep 2003
    • 598

    #2
    if you wanna know what inside /usr is taking the most space...do

    du -ks `ls /usr/`

    If you mean users...then thats

    du -ks `ls /usr/home/`

    or

    du -ks `ls /home/`

    *edited to fix command*

    Comment

    • TheJimmy
      ICQ- five seven 0 2 5 5 0
      • Jan 2001
      • 10747

      #3
      Originally posted by Andrew-at-ENet
      if you wanna know what inside /usr is taking the most space...do

      du -ks `ls /usr/`

      If you mean users...then thats

      du -ks `ls /usr/home/`

      or

      du -ks `ls /home/`

      *edited to fix command*

      awesome! thanks mang....totally appreciate that...gotta find out who's jonesin all this space...damm pack rats.... ;)
      Investor with 5m - 15m USD to invest. Do you have a site or network of sites earning 50k - 200k a month income? Email your contact and preliminary data to: domain.cashventures (at) gmail.com....Please...no tire kickers...serious offers and inquiries only.

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        or you could have just typed df -H

        will tell you what partitions how big each are
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • Andrew-at-ENet
          Confirmed User
          • Sep 2003
          • 598

          #5
          Originally posted by fris
          or you could have just typed df -H

          will tell you what partitions how big each are
          Don't think that's the details he's lookin for

          Comment

          • Andrew-at-ENet
            Confirmed User
            • Sep 2003
            • 598

            #6
            Originally posted by TheJimmy
            awesome! thanks mang....totally appreciate that...gotta find out who's jonesin all this space...damm pack rats.... ;)
            No problem, invoice is in the mail

            Comment

            • TheJimmy
              ICQ- five seven 0 2 5 5 0
              • Jan 2001
              • 10747

              #7
              Originally posted by Andrew-at-ENet
              No problem, invoice is in the mail

              it's kinda working but not really giving me the list of users and how much each account is using

              is this for linux boxes or will it also work on freebsd?

              sorry for having misplaced all my clues tonight
              Investor with 5m - 15m USD to invest. Do you have a site or network of sites earning 50k - 200k a month income? Email your contact and preliminary data to: domain.cashventures (at) gmail.com....Please...no tire kickers...serious offers and inquiries only.

              Comment

              • Andrew-at-ENet
                Confirmed User
                • Sep 2003
                • 598

                #8
                Originally posted by TheJimmy
                it's kinda working but not really giving me the list of users and how much each account is using

                is this for linux boxes or will it also work on freebsd?

                sorry for having misplaced all my clues tonight
                You need to basically execute the du -ks `ls`

                On the directory that contains all the users home directories. That'll give you how much each directory has... a quick sort on that would give you the top users.

                It should work on Linux & FreeBSD & Solaris

                Comment

                • TheJimmy
                  ICQ- five seven 0 2 5 5 0
                  • Jan 2001
                  • 10747

                  #9
                  Originally posted by Andrew-at-ENet
                  You need to basically execute the du -ks `ls`

                  On the directory that contains all the users home directories. That'll give you how much each directory has... a quick sort on that would give you the top users.

                  It should work on Linux & FreeBSD & Solaris

                  when I run the commands I get this:



                  su-2.04# du -ks 'ls'
                  du: ls: No such file or directory
                  su-2.04# du -ks 'ls /usr/home/'
                  du: ls /usr/home/: No such file or directory


                  and trust me, those files/directories exist
                  Investor with 5m - 15m USD to invest. Do you have a site or network of sites earning 50k - 200k a month income? Email your contact and preliminary data to: domain.cashventures (at) gmail.com....Please...no tire kickers...serious offers and inquiries only.

                  Comment

                  • Andrew-at-ENet
                    Confirmed User
                    • Sep 2003
                    • 598

                    #10
                    Originally posted by TheJimmy
                    when I run the commands I get this:



                    su-2.04# du -ks 'ls'
                    du: ls: No such file or directory
                    su-2.04# du -ks 'ls /usr/home/'
                    du: ls /usr/home/: No such file or directory


                    and trust me, those files/directories exist
                    you're using ' instead of `

                    There's a difference.

                    Comment

                    Working...