Linux.com

Disk usage

Posted by: Anonymous Coward on July 25, 2005 08:03 PM
An excellent question to ask from time to time, and especially before a critical drive fills up completely. To get the answer, type df on the command line.

But what's taking up all that diskspace? 'du' provides the anwser:

[todsah@jib]~$ whatis du
du (1) - estimate file space usage
[todsah@jib]~$ du -hs *
93M Mail
32M Trash
426M bin
108M dev
357M download
1.8M notes
4.0K temp

And though it's not a CLI tool, XDU is still very handy. It shows a graphical representation of the output of the 'du' command:

<a href="http://sd.wareonearth.com/~phil/xdu/" title="wareonearth.com">http://sd.wareonearth.com/~phil/xdu/</a wareonearth.com>

#

Return to CLI Magic: Information, please