Disk space by filetype

Jason Spiro jasonspiro-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Wed Apr 12 23:11:47 UTC 2006


I often seem to fill up my hard drive to the max.

I have been wondering if it is practical to write a script to use UPX
to pack the binaries and shared libraries of seldom-used applications
(those whose last access time is long ago.) Or perhaps even strip
them, though that makes GDB backtraces upon crashes quite useless.

But first, I wonder: Is there an easy way for me find out what
proportion of my disk is made of what sorts of files?

This would allow me to answer such questions as: What proportion of my
disk do binaries and libraries take up anyway? Text files? (For
example, my /var/lib/dpkg/info directory takes up 28MB. Nothing there
is compressed. Makes you wonder if whole-disk compressed file systems
are worth it...) Could I have hundreds of megabytes of .o files left
over from compiling things?

I'm sure I could hack something up in perl, but if there was a nice
graphical tool it'd be even better. I couldn't find anything in
Debian's apt repository or on freshmeat. xdiskusage and kdirstat do
not do this measurement. gdmap colorizes by filetype but does not have
the summary reporting functionality I am looking for.

Any thoughts?
Jason
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list