Linux - Find Total and Free Disk Space from Command Line or Terminal

Printer-friendly versionPDF version
Free Disk Space Command

To find the total and free disk space in Linux operating systems such as Ubuntu and openSUSE, you need to use the df command. Here is an example:


df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       913G  481G  386G  56% /
udev            2.0G  4.0K  2.0G   1% /dev
tmpfs           807M  1.2M  805M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            2.0G  2.7M  2.0G   1% /run/shm
cgroup          2.0G     0  2.0G   0% /sys/fs/cgroup
If you run df without any switches, it will give you the same output, but in Kilobytes. If you want to learn how to find total and free disk space in Windows, check out this tutorial.

Post new comment