Disk usage analysis

Christopher Chambers
2009-04-22T03:10:30+00:00

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



Disk usage analysis by Robert Huff on 2009-04-22T03:24:51+00:00

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


Re: Disk usage analysis by Adam Vande More on 2009-04-22T03:39:49+00:00
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=du&apropos=0&sektion=0&manpath=FreeBSD+7.1-RELEASE+and+Ports&format=html

Re: Disk usage analysis by Tim Judd on 2009-04-22T03:58:44+00:00
On Tue, Apr 21, 2009 at 9:21 PM, Adam Vande More <amvandemore@gmail.com>wrote:

> 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

Re: Disk usage analysis by Polytropon on 2009-04-22T05:53:14+00:00
On Tue, 21 Apr 2009 20:08:18 -0700, Christopher Chambers <cchamb0@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.


http://lists.freebsd.org/mailman/listinfo/freebsd-questions

Re: Disk usage analysis by Gary Kline on 2009-04-22T06:31:54+00:00
On Wed, Apr 22, 2009 at 07:52:38AM +0200, Polytropon wrote:
> On Tue, 21 Apr 2009 20:08:18 -0700, Christopher Chambers <cchamb0@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 waaaaaay 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

> 
	[ ... ]
> 
> 
> 

Re: Disk usage analysis by Wojciech Puchar on 2009-04-22T08:03:04+00:00
>>
>> 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 waaaaaay 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!

Re: Disk usage analysis by Peter Boosten on 2009-04-22T08:23:34+00:00


On 22 apr 2009, at 10:01, Wojciech Puchar <wojtek@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

>

Re: Disk usage analysis by Jerry McAllister on 2009-04-22T14:42:26+00:00
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


> 
> 

Re: Disk usage analysis by Mikel King on 2009-04-22T14:49:53+00:00

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
+



Re: Disk usage analysis by andrew clarke on 2009-04-22T19:32:48+00:00
On Wed 2009-04-22 10:46:14 UTC-0400, Mikel King (mikel.king@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
Loading


$ This page is proudly powered by www.pubbs.net, you can see more at freebsd archive | Partners: Global Manufacturers