How can I tell how much disk space is available on my Droplet?

I’ve logged into the server (“droplet”) using Putty and the root username and password. Now I would like to know how much disk space is remaining that is available to me. How can I find this out?

Show comments

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

df -h will report disk space, it doesn’t show RAM usage. The line you want for how much disk space you’re using is likely /dev/vda. For instant on mine I see: <br> <br>/dev/vda 20G 2.0G 17G 11% / <br> <br>The second column shows total space, third column how much you’re using, fourth amount free and fifth percent used. <br> <br>To see how much RAM you’re using run: <br> <br>free -m <br>

Since the df -h was not detailed enough, and I needed each folder’s size and find out where the biggest folder is, I used the tutorial of

  1. SSH into your server
  2. Run the installer sudo apt-get install ncdu
  3. Run the tool sudo ncdu /


You can even navigate into the folders to get more details!

You can use the Linux command df to display your disk space.

df -h