Re: /home out of space



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

.



Relevant Pages

  • Re: My future is in tatters.... :(
    ... I didn't like to say in case it upset the original poster, so, if you're reading, here's some spoiler space ... and a C for general studies. ... drawing graphs instead of writing, he got a C. Unfair, isn't it? ... been very anti-paperwork and forms since being ill, ...
    (uk.people.support.depression)
  • Re: Gutter size
    ... gonna output to pdf then off to print house. ... Epson 910 that Ill use for my own eye. ...
    (microsoft.public.publisher)
  • Re: {OT} Did Barry write his books?
    ... I guess you've never tried to do any creative writing. ... The rejections ... movements such as reading makes it dart back and forth, ... can sit back at least three feet and I don't need to move my eye back ...
    (alt.autos.toyota)
  • Re: irta, in the wild
    ... the t-shirt worn by a young woman. ... (the way one's eye is. ... irt writing as "24% entertaining". ...
    (uk.media.radio.archers)
  • RE: Page Fault in 6.2-PRE RELEASE
    ... Ill keep my eye on this and just use a crossover cable for the time being. ... Christopher Harper wrote: ...
    (freebsd-stable)