How much space is left on my hard drive? A common question and very easy to solve in Linux.
On the CLI to see how much space is left use this command:
Df analyzes your disk.
The -h flag stands for human readable, meaning you get an easy to read and understand result.
Df is part of the coreutils package which is installed by default.
“df – – help”, gives you other options on usage but my example is the most common way on the CLI to check your disk space with df.
Nicer is it to analyze your disk with some easy to understand colorful graphics.
For this you need to install gnome-utils, which is available in the main repository of Ubuntu and is not installed by default.
sudo apt-get install gnome-utils
Go in your menu to Applications > Accessories > Disk Usage analizer.
This will start up Baobab, a graphic disk usage analizer which is part of the gnome-utils package.
Now, to try it click the “Scan Home Folder button” and you will see on the right side a diagram appear. Every folder has its own color, and when you hover over it with the mouse cursor, it will tell you the name of the folders and the size of it
Very neat, and very easy to use.
Try it and check it out.