Re: Disk usage analysis

2009-04-22 Thread Gary Kline
On Wed, Apr 22, 2009 at 07:52:38AM +0200, Polytropon wrote:
 On Tue, 21 Apr 2009 20:08:18 -0700, Christopher Chambers 
 ccha...@interchange.ubc.ca wrote:
  Is there an easy way to analyze disk usage to determine which files and
  folders are taking up the most space?
 
 See man du. Just for terminology: In UNIX (so in FreeBSD), there
 are no folders. Folders are made of paper and reside in a cabinet. :-)
 
 These are called directories.
 
 You don't call files sheets of paper either, do you? :-)

YES!! I'm probably too up-tight about the use of folder,
but it just seems like waay too much stupiding-down of the
std Unix terminology.  ([I thought I was the only one].  And yes,
there are things of greater gravitas to be ticked off about!)

gary

 
[ ... ]
 
 
 -- 
 Polytropon
 From Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.41a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disk usage analysis

2009-04-22 Thread Wojciech Puchar


These are called directories.

You don't call files sheets of paper either, do you? :-)


YES!! I'm probably too up-tight about the use of folder,
but it just seems like waay too much stupiding-down of the
std Unix terminology.  ([I thought I was the only one].  And yes,
there are things of greater gravitas to be ticked off about!)

it's just stupid to pursue windoze/maclame naming where names are ALREADY 
present!

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disk usage analysis

2009-04-22 Thread Peter Boosten



On 22 apr 2009, at 10:01, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl 







it's just stupid to pursue windoze/maclame naming


It's just stupid to start another flame war about the superiority of  
one or another OS.


Peter




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disk usage analysis

2009-04-22 Thread Mikel King


On Apr 21, 2009, at 11:24 PM, Robert Huff wrote:



Christopher Chambers writes:


Is there an easy way to analyze disk usage to determine which
files and folders are taking up the most space?


If this isn't a FAQ, then search the mailing list archives.
This question, or something leading to it like out of disk space,
comes up regularly.


Robert Huff



I used to run durep on my shared servers. The package seems a bit out  
of date and I have often considered adopting it as a pet project to  
rewrite/update, but time, time and time always seem to be an issue.  
You can read more about the application. It generates a comprehensive  
report that can be automatically emailed, or viewed via the web.


http://www.hibernaculum.net/durep/

Cheers,
Mikel King
CEO, Olivent Technologies
Senior Editor, Daemon News
Columnist, BSD Magazine
6 Alpine Court
Medford, NY 11763
http://www.olivent.com
http://www.daemonnews.org
http://www.bsdmag.org
skype: mikel.king
+--+
Follow me if you dare...
http://twitter.com/mikelking
+--+






___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disk usage analysis

2009-04-22 Thread Jerry McAllister
On Tue, Apr 21, 2009 at 08:08:18PM -0700, Christopher Chambers wrote:

 Is there an easy way to analyze disk usage to determine which files and
 folders are taking up the most space?

Check out the du(1) command.

Go in to a file system and type du -sk *   or  maybe  du -sh * 
(I prefer the former because then all numbers have the same value)

Once you determine some directory that seems out of line, go in to that
directory and do it again.

jerry


 
 -- 
 Christopher Chambers ccha...@interchange.ubc.ca
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disk usage analysis

2009-04-22 Thread Mikel King




On Apr 22, 2009, at 3:05 PM, andrew clarke wrote:

On Wed 2009-04-22 10:46:14 UTC-0400, Mikel King (mikel.k...@olivent.com 
) wrote:



I used to run durep on my shared servers.


durep seems to have no concept of security :-)  So how did you go  
about

restricting unwanted people from viewing its output?

Regards
Andrew


When we ran it initially we used .htaccess, then rolled it into a php  
app.


m

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disk usage analysis

2009-04-22 Thread Mikel King


On Apr 22, 2009, at 3:13 PM, andrew clarke wrote:

On Thu 2009-04-23 05:05:25 UTC+1000, andrew clarke  
(m...@ozzmosis.com) wrote:


durep seems to have no concept of security :-)  So how did you go  
about

restricting unwanted people from viewing its output?


I'm referring to the CGI version of durep here, of course.



We didn't run the CGI version. Only used it as a scheduled task, to  
generate the report once or twice per day. 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disk usage analysis

2009-04-22 Thread andrew clarke
On Thu 2009-04-23 05:05:25 UTC+1000, andrew clarke (m...@ozzmosis.com) wrote:

 durep seems to have no concept of security :-)  So how did you go about
 restricting unwanted people from viewing its output?

I'm referring to the CGI version of durep here, of course.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disk usage analysis

2009-04-22 Thread andrew clarke
On Wed 2009-04-22 10:46:14 UTC-0400, Mikel King (mikel.k...@olivent.com) wrote:

 I used to run durep on my shared servers.

durep seems to have no concept of security :-)  So how did you go about
restricting unwanted people from viewing its output?

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Disk usage analysis

2009-04-21 Thread Christopher Chambers
Is there an easy way to analyze disk usage to determine which files and
folders are taking up the most space?


-- 
Christopher Chambers ccha...@interchange.ubc.ca

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Disk usage analysis

2009-04-21 Thread Robert Huff

Christopher Chambers writes:

  Is there an easy way to analyze disk usage to determine which
  files and folders are taking up the most space?

If this isn't a FAQ, then search the mailing list archives.
This question, or something leading to it like out of disk space,
comes up regularly.


Robert Huff

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disk usage analysis

2009-04-21 Thread Adam Vande More

Christopher Chambers wrote:

Is there an easy way to analyze disk usage to determine which files and
folders are taking up the most space?


  

du -hd 1 | sort -n

http://www.freebsd.org/cgi/man.cgi?query=duapropos=0sektion=0manpath=FreeBSD+7.1-RELEASE+and+Portsformat=html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disk usage analysis

2009-04-21 Thread Tim Judd
On Tue, Apr 21, 2009 at 9:21 PM, Adam Vande More amvandem...@gmail.comwrote:

 Christopher Chambers wrote:

 Is there an easy way to analyze disk usage to determine which files and
 folders are taking up the most space?




 du -hd 1 | sort -n


du -kd 1 | sort -rn


Shows in ENV{BLOCKSIZE} the biggest directories first.  Bound to be / always
in this situation.  :D
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disk usage analysis

2009-04-21 Thread Polytropon
On Tue, 21 Apr 2009 20:08:18 -0700, Christopher Chambers 
ccha...@interchange.ubc.ca wrote:
 Is there an easy way to analyze disk usage to determine which files and
 folders are taking up the most space?

See man du. Just for terminology: In UNIX (so in FreeBSD), there
are no folders. Folders are made of paper and reside in a cabinet. :-)

These are called directories.

You don't call files sheets of paper either, do you? :-)

For a GUI solution, check out file browsers. Most of them have the
ability to calculate the disk space occupation of a certain
directory or subtree. For example, in the Midnight Commander,
use PF9, Command, Show directory sizes.


-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org