This simple guide explains how to check how much disk space is available in Ubuntu Linux.
Easy! But, it’s a bit difficult to read at a glance – the -h option makes everything human-readable:
However, there’s a lot of junk in there- we can ignore the /dev/loop* entries by omitting filesystems of the squashfs type:
df -h -x squashfs
Which gives a tidier looking:
Your main disks will most likely be named /dev/sda or /dev/sdb, so you can easily find them in the list and see how much space is available.
You can also find them in the list by checking the size of the volume and matching it to the disk you are investigating.