Report this

What is the reason for this report?

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

Posted on July 9, 2015

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, Dave.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.