Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-22-2004, 09:53 PM   #1
TheJimmy
ICQ- five seven 0 2 5 5 0
 
Join Date: Jan 2001
Posts: 10,747
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.
TheJimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2004, 09:54 PM   #2
Andrew-at-ENet
Confirmed User
 
Join Date: Sep 2003
Location: In the 60s
Posts: 598
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*
__________________
Andrew-at-ENet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2004, 10:05 PM   #3
TheJimmy
ICQ- five seven 0 2 5 5 0
 
Join Date: Jan 2001
Posts: 10,747
Quote:
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.
TheJimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2004, 10:06 PM   #4
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
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.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2004, 10:08 PM   #5
Andrew-at-ENet
Confirmed User
 
Join Date: Sep 2003
Location: In the 60s
Posts: 598
Quote:
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
__________________
Andrew-at-ENet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2004, 10:08 PM   #6
Andrew-at-ENet
Confirmed User
 
Join Date: Sep 2003
Location: In the 60s
Posts: 598
Quote:
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
__________________
Andrew-at-ENet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2004, 10:22 PM   #7
TheJimmy
ICQ- five seven 0 2 5 5 0
 
Join Date: Jan 2001
Posts: 10,747
Quote:
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.
TheJimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2004, 10:23 PM   #8
Andrew-at-ENet
Confirmed User
 
Join Date: Sep 2003
Location: In the 60s
Posts: 598
Quote:
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
__________________
Andrew-at-ENet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2004, 10:26 PM   #9
TheJimmy
ICQ- five seven 0 2 5 5 0
 
Join Date: Jan 2001
Posts: 10,747
Quote:
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.
TheJimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2004, 10:27 PM   #10
Andrew-at-ENet
Confirmed User
 
Join Date: Sep 2003
Location: In the 60s
Posts: 598
Quote:
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.
__________________
Andrew-at-ENet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.