Report this

What is the reason for this report?

How to check disk space on Ubuntu server?

Posted on May 28, 2026
Witomir Łękowski

By Witomir Łękowski

Kierowca i miłośnik motoryzacji

I’m managing a small business website on Ubuntu. What’s the simplest command to check available disk space?



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.

Hi there,

df -h

That’s it. The -h flag makes the output human readable so you see GB and MB instead of raw bytes. Look at the Use% column for your main partition, usually mounted at /.

If you want to find what is actually eating up space:

du -h / --max-depth=3 2>/dev/null | sort -rh | head -20

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Dark mode is coming soon.