Re: Root filesystem full

From: Aaron Baugher (abaugher_at_esc.pike.il.us)
Date: 03/30/04


Date: Mon, 29 Mar 2004 20:02:00 -0600

Sean <smalone@sbcglobal.net> writes:

> Thanks for the reply. Before I had post my question I did a little
> research and I learned about the command you had sugested. Below is
> the output of that command:

> 194M ./root

There's your problem. Are you logging in and doing a lot of stuff as
root? You don't want to do that.

By the way, I hate the -h option for 'du'. It's a lot easier to spot
the big directories if your listing looks like this:

72 ./dev
118 ./tmp
2 ./usr
2 ./var
2444 ./stand
1316 ./etc
2 ./cdrom
1 ./proc
2 ./dist
4124 ./bin
1054 ./boot
2 ./mnt
7806 ./modules
31424 ./root
12488 ./sbin
7628 ./modules.old
2 ./service

That's a lot easier to read than the output of 'du -h' where you have
to pick out the Gs and Ms from the Ks and Bs. Also, you can pipe it
to a numerical sort:

# cd /; \du -x -d 1 | sort -n
1 ./proc
2 ./cdrom
2 ./dist
2 ./service
2 ./usr
2 ./var
16 ./bak
72 ./dev
118 ./tmp
1054 ./boot
1316 ./etc
2444 ./stand
4124 ./bin
7628 ./modules.old
7806 ./modules
12488 ./sbin
31424 ./root

Much nicer.

-- 
Aaron
abaugher@esc.pike.il.us


Relevant Pages

  • Re: weird behavior w/ puts -nonewline
    ... Sean wrote: ... Seems like it is buffering the puts until the entire ... To pause your script you can use the after command. ...
    (comp.lang.tcl)
  • Re: Print Command
    ... Collection feature so you can set a significant number of ... properties, including Copies, of a Printer object. ... >> Sean wrote: ... >>>I have a command button that will run a report and print it. ...
    (microsoft.public.access.reports)
  • Re: Hiding a Button
    ... ensure your Control toolbox toolbar is visible (right click on ... Create a command button (click command button on Control toolbar and click ... Sean ...
    (microsoft.public.excel.programming)
  • Re: Print Command
    ... "Marshall Barton" wrote: ... > Sean wrote: ... >>I have a command button that will run a report and print it. ...
    (microsoft.public.access.reports)
  • Re: [PATCH] namespaces: uts_ns: make information visible via /proc/PID/uts directory
    ... command. ... After doing this I noticed that the whole way this is done via sysctls ... in /proc/sys is much, much nicer. ... actually my second failure from yesterday's efforts. ...
    (Linux-Kernel)