Report this

What is the reason for this report?

How to Check My Droplet’s Disk Space Usage?

Posted on February 1, 2025

Hey everyone!

I want to check how much disk space my DigitalOcean Droplet is using. What’s the best way to do that from the terminal? Thanks in advance!



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.

Hey! 👋

You can check your Droplet’s disk space usage with:

df -h

This will show all mounted filesystems and their usage in a human-readable format.

To see which directories are taking up space, run:

du -sh /*

Let me know if you need help freeing up space!

- Bobby

Heya,

The command you are looking for is df -h. That would give you some information like

root@ubuntu-s-1vcpu-1gb-fra1-01:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs            97M  1.3M   95M   2% /run
/dev/vda1        24G   16G  7.4G  69% /
tmpfs           481M  2.1M  479M   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/vda16      881M  186M  634M  23% /boot
/dev/vda15      105M  6.1M   99M   6% /boot/efi
tmpfs            97M   12K   97M   1% /run/user/0
overlay          24G   16G  7.4G  69% 
root@ubuntu-s-1vcpu-1gb-fra1-01:~#

You see /dev/vda1 24G 16G 7.4G 69% / that is yyour Disk Space, what is the total size, what is used and what is available.

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.