This simple guide explains how to check how much disk space is available in Ubuntu Linux.
The df command tells you how much space is being used on each storage volume attached to your Linux system. To run it, simply execute the following command in your terminal:
df
Which outputs:
![Checking for Available Disk Space on Ubuntu [Guide]](https://www.wsxdn.com/UploadFiles/202207/2022070816460570.png)
df command output
Easy! But, it’s a bit difficult to read at a glance – the -h option makes everything human-readable:
df -h
Which outputs:
![Checking for Available Disk Space on Ubuntu [Guide]](https://www.wsxdn.com/UploadFiles/202207/2022070816460553.png)
df -h command output
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:
![Checking for Available Disk Space on Ubuntu [Guide]](https://www.wsxdn.com/UploadFiles/202207/2022070816460648.png)
df -h -x squashfs
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.