How can I tell how much disk space I am using please?

Posted July 9, 2015 8.1k views
PHPDigitalOceanControl Panels

How can I tell how much disk space I am using please for my droplet? I use it for my website and am about to upload quite a few images.

thanks in advance,

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

2 answers

You can check how much disk space you are using by running the df command.

root@droplet:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        40G  3.9G   34G  11% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            999M  4.0K  999M   1% /dev
tmpfs           202M  324K  202M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none           1008M     0 1008M   0% /run/shm
none            100M     0  100M   0% /run/user

The -h option is used to output human readable sizes (e.g. 34G instead of 34000000000 bytes).

In this example, the droplet is using 3.9 gigabytes of disk space.

Submit an Answer