How to check disk space from command line

How to check disk space from command line

Did you know that you can check disk space from command line of xubuntu? in this article i will show you how to check disk space from command line/terminal of xubuntu.

There is a special command line tool for checking disk space called df, you can run df command without any parameter and doesn't require root permission.
df
Notice that when you run df command, it will show used and available space but it's unreadable because by default df is displaying in bytes. To make it easier to read, we need to add -h parameter for human readable format.
df -h
Example output:
kernelpanic@xubuntu:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       909G  785G   79G  91% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            3.9G  4.0K  3.9G   1% /dev
tmpfs           794M  1.4M  792M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            3.9G  279M  3.7G   8% /run/shm
none            100M   44K  100M   1% /run/user
/dev/sda1       511M  3.4M  508M   1% /boot/efi

Share this

Previous
Next Post »