Question

How to Check My Droplet’s Disk Space Usage?

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!


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
February 2, 2025

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

KFSys
Site Moderator
Site Moderator badge
February 2, 2025

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.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.