Whether you are downloading large application packages, running virtual machines, or backing up personal media, monitoring your available storage on Ubuntu is essential to keep your system performing smoothly. Running out of root filesystem space can prevent package updates from installing, corrupt local databases, or cause the graphical desktop to fail during login. Ubuntu provides both visual graphical tools and quick terminal utilities to inspect free drive capacity and pinpoint large storage hogs.
Method 1: Check Disk Space Graphically via Disk Usage Analyser (Baobab)
Ubuntu includes a visual disk inspection utility called Disk Usage Analyser that maps out drive consumption in clear visual charts:
- Press the Super key (Windows key) or click Show Applications at the bottom-left corner of your desktop.
- Type Disk Usage Analyser into the search bar and launch the application.
- The home screen displays all connected physical drives, internal partitions, and external USB storage devices with their total size, used space, and free capacity.
- Click on your primary Computer or Home folder partition to scan it.
- The analyser displays an interactive ring chart (or treemap). Larger folders take up wider wedges.
- Click through the rings or expand folders in the left-hand column to easily identify bloated cache directories, orphaned downloads, or forgotten video files.
Method 2: Use the Disks Utility for Hardware Partition Overviews
If you want to view low-level partition layouts, swap space, and filesystem types:
- Open the Show Applications menu and search for Disks (gnome-disks).
- Select your physical drive from the left sidebar.
- The visual volume diagram shows partition boundaries, file formats (ext4, FAT32, NTFS), mount points, and remaining free space.
Method 3: Check Free Space Using the df Terminal Command
The command line is the quickest way to inspect filesystem capacity across all mount points:
- Open the Terminal by pressing Ctrl + Alt + T.
- Run the
dfcommand with the human-readable flag:df -h - Examine the output columns:
- Filesystem: The partition device name.
- Size: Total partition capacity.
- Used: Current space consumed.
- Avail: Space remaining for new files.
- Use%: Percentage of space consumed.
- Mounted on: The directory where the drive is attached. Look for
/(root partition) and/home.
- To filter out virtual snap packages and temporary RAM mounts, run:
df -h --exclude-type=tmpfs --exclude-type=squashfs
Method 4: Measure Folder Sizes with the du Command
To identify which specific subdirectories inside your home folder are taking up the most space, run:
du -sh ~/Downloads ~/Documents ~/Videos
This prints clean human-readable gigabyte tallies for your primary folders, helping you decide what to clean or archive.