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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.