How To Check Your Disk Usage in Linux

A disk in a data center
(Image credit: Pexels / OpenClipArt)

No matter how high-capacity your storage drive is, you always need to see how much space you have used and what files are using it. While there are ways to do this from the GUI in Linux, as always, you get more detail by using the terminal command line. Terminal tools are especially useful for users who are monitoring remote systems, for example busy system administrators connecting over a secure shell connection. In this tutorial, we’ll look at various ways of using the terminal to check disk usage enabling us to see what storage space is left on our system no matter where we may be.

All the commands in this how-to will work on most Linux machines. We’ve used an Ubuntu LTS install but you could run this how-to on a Raspberry Pi. All of the how-to is performed via the Terminal. You can open a terminal window on most Linux machines by pressing ctrl, alt and t.

Latest Videos FromTom's Hardware
TOPICS
Jo Hinchliffe
Contributing Writer

Jo Hinchliffe is a UK-based freelance writer for Tom's Hardware US. His writing is focused on tutorials for the Linux command line. From PCBs to rowing boats to rockets, Jo tries wherever possible to integrate open source hardware and software into his projects. As such he is a keen Linux user, has authored a book on FreeCAD the open source 3D modeling software, and has published designs and tutorials across a wide range of makes.

With contributions from