Re: /home out of space
- From: Rick Moen <rick@xxxxxxxxxxxxxx>
- Date: Mon, 30 Jan 2006 19:55:13 -0500
PHead <scott_hutter@xxxxxxxxx> wrote:
> Well, I dont know what happened, but after rebooting, /home is back
> down to practically nothing. Sounds like something was writing an error
> log which may have been flushed on shutdown. Ill have to keep an eye
> on it.
Try saving the following Perl code (whose use I figure will be obvious)
as /usr/local/bin/largest20, and then doing "chmod u+x
/usr/local/bin/largest20":
#!/usr/bin/perl -w
# You can alternatively just do:
# find . -xdev -type f -print0 | xargs -r0 ls -l | sort -rn +4 | head -20
use File::Find;
@ARGV = $ENV{ PWD } unless @ARGV;
find ( sub { $size{ $File::Find::name } = -s if -f; }, @ARGV );
@sorted = sort { $size{ $b } <=> $size{ $a } } keys %size;
splice @sorted, 20 if @sorted > 20;
printf "%10d %s\n", $size{$_}, $_ for @sorted
.
- References:
- /home out of space
- From: PHead
- Re: /home out of space
- From: Michael Heiming
- Re: /home out of space
- From: PHead
- /home out of space
- Prev by Date: Re: fedora core 3 install error - no drives found
- Next by Date: how to see modprobe errors
- Previous by thread: Re: /home out of space
- Next by thread: Re: /home out of space
- Index(es):
Relevant Pages
|