Even with today massive disk drives it’s so easy to run out of disk space. This can be a real pain if you happen to run out of space on your root volume.
So, you fancy doing some spring cleaning and want to track down where all of your space has gone.
Here’s a quick run through using nothing more than the command prompt –
To show all of your filesystems with the -m showing used/free space in megabytes
So I’m using 718 MB of my disk space but where?
For the next bit we’re going to need to be root (or root equivalent)
That will list the size in MB of all of the folders in root (/) with the largest last.
So my /usr folder is using 513MB. Now I can drill down into the folders running the same command again.
and so on.
Obviously you only want to be deleting files when you’re absolutely positive what they are used for and what impact deleting them will have on your system!
There are a whole bunch of utilities for both Windows and linux to make this process easier and prettier! Here’s a couple –