Two standard Unix tools to check out the space left on your hard drive... How Much Space Left?

With the advent of broadband, even the largest HD's will get full at some point. Other times, that 486 you got from the skip desparately needs some upgraded packages, but you're not sure if it can handle the diskspace. Try:

(It will return the disk, the space used in MB/GB, space free in MB/GB, filesystem and % used) Which Directories Are Using Up Space?

To find out how much space a particular directory and all the subdirectories use, I use:

(It will return the size in KB's/MB's etc)

(Particularly useful for ~/oggs!) If you use it without the -s, it will list all the subdirs too, which will allow you to investigate further. You can then archive/backup old data, and remove useless data (old .debs/rpms/tars etc).

Ricardo

(Edited by MJR (minor))

I like:

This tells you how much space each folder in the current directory is taking up in KB.

Alexis Lee (LxS), 27.5.2002

...except it doesn't work if any of the directories have (for instance) spaces in the name.

is more reliable.

Category: TipsTricksAndWorkarounds

DiskUsage (last edited 2008-11-22 12:55:33 by )