Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Run df -h to see which mounted filesystem is short on space, then use du or ncdu to locate large directories on that filesystem. Identify what the files are before removing anything, and finish by checking df -h again.

1. Find the filesystem that is running low

Open a terminal and run:

df -h

The command reports capacity and available space for mounted filesystems in human-readable units. Its results answer which filesystem is full; they do not identify the files using the space. To check the filesystem containing a particular location, pass that path:

df -h /home

df reports mounted filesystems, not the capacity of an unmounted disk or partition. See the GNU Coreutils documentation for df.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

2. Locate the large directories on that filesystem

Use the mount point or directory associated with the full filesystem. On GNU/Linux systems with the relevant GNU du options, run:

#1 Best Overall
Sandisk 2TB Extreme Portable SSD, Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware, External Solid State Drive, SDSSDE61-2T00-G25
  • Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
  • Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
  • Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
  • Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
  • Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C
du -xhd1 /path

Replace /path with the directory you want to inspect—for example, /home if that is where your space issue is. The options limit the summary to one directory level (-d1) and keep the scan on the same filesystem (-x). If a directory stands out, run the command again using that directory as the path to inspect its contents in more detail.

du recursively estimates the space used by the files and directories it can scan. Permission restrictions can hide some content, and crossing into another filesystem can make a scan irrelevant to the capacity reported for the filesystem you are investigating. For option details, see the GNU Coreutils documentation for disk usage.

3. Browse interactively or use an Ubuntu desktop tool

Terminal browser: ncdu

If you prefer navigating a directory tree interactively, use:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
  • Solid state performance with up to 800MB/s read speeds in a portable drive. (Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes.)
  • Back up your content and memories on a storage solution that fits seamlessly into your mobile lifestyle.
  • Take it with you on your adventures—up to two-meter drop protection means this durable drive can take a beating. (Based on internal testing.)
  • Secure it to your belt loop or backpack for extra peace of mind thanks to the tough rubber hook.
  • From Sandisk, a brand professional photographers trust to take on assignments.
ncdu -x /path

This provides a terminal-based view of directory usage while keeping the scan on one filesystem. The Ubuntu Noble manual for ncdu documents version 1.19-0.1 and a read-only mode, -r, which disables deletion and shell-spawning features. The available version and options can differ across distributions.

Ubuntu desktop

Ubuntu’s desktop documentation lists Disk Usage Analyzer, System Monitor, and Usage for checking capacity and folder usage. The applications and labels available depend on the desktop release; consult the Ubuntu Disks & storage guide.

4. Decide what is safe to remove

Inspect the large directories rather than deleting a file or system folder just because it is big. Common places to review include Downloads, media collections, virtual-machine images, containers, and project or build files. Ubuntu recommends understanding what is taking space before choosing what to remove, and leaving system-side content alone unless you understand the operation.

Rank #3
SSK Portable SSD 500GB External Solid State Hard Drive USB C Up to 1050MB/s
  • Capacity Display Variance: 500GB external ssd often appears as around 465GB on Windows. MacOS can show full 500 GB capacity. This is binary calculation difference and doesn’t affect SSD hard drive actual physical storage
  • 1050 MB/s Speed: Instantly access to your files with blazing-fast 10Gbps external SSD read up to 1050MB/s and write up to 1000MB/s. LED Light indicates USB SSD instant activity
  • Data Security: Solid state drives S.M.A.R.T. health diagnostics​ and adaptive TRIM optimizing data block management ensures consistent write speeds and extends the longevity of the portable SSD
  • USB-C & USB-A Cable: Both cables featuring rapid USB 3.2 Gen2, this USB SSD effortlessly bridges devices, enabling seamless cross-platform file transfers and backup between computers, smartphones, tablets and iPhone
  • Always Fast: No slowdowns for large file transfers. With SLC caching (25% of current available capacity allocated as high-speed cache), this external SSD delivers steady 10Gbps for transfers within the cache capacity
  • For personal files you want to remove from the internal disk, make a separate backup first. Ubuntu recommends keeping important personal files in a separate location, preferably on another device such as an external disk. Confirm the copy is complete before deleting the originals.
  • For caches, logs, or application data, identify the relevant tool and what its cleanup operation removes. Avoid manually deleting unfamiliar system files.

Ubuntu’s advice is to determine “what takes your space and what you can do to potentially remove some of the unwanted stuff.” Read its disk-usage guidance before making changes you do not understand.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

5. Use cleanup commands only when they apply

APT cache and unused dependencies on Debian or Ubuntu

These commands are for APT-based systems, not every Linux distribution:

  • sudo apt clean clears retrieved package files from APT’s cache.
  • sudo apt autoclean removes cached package files that can no longer be downloaded.
  • sudo apt autoremove removes packages installed automatically as dependencies that are no longer needed. Review the proposed removal list before confirming.

These operations do different things; choose based on what you intend to remove. The Ubuntu Noble APT manual documents package-handling behavior.

Rank #4
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Archived systemd journal files

If your system uses the systemd journal, first inspect its disk usage:

journalctl --disk-usage

You can then set an example size or time bound for archived journal files:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo journalctl --vacuum-size=500M
sudo journalctl --vacuum-time=30days

Vacuuming removes archived journal files, not active ones, so the reported total may remain above the chosen size. See the systemd version 255 manual for journalctl.

Best Value
Sale
Samsung T7 Portable SSD 1TB Titan Gray, USB 3.2 Gen 2, Up to 1,050MB/s
  • MADE FOR THE MAKERS: Create; Explore; Store; The T7 Portable SSD delivers fast speeds and durable features to back up any endeavor; Build your video editing empire, file your photographs or back up your blogs all in an instant
  • SHARE IDEAS IN A FLASH: Don’t waste a second waiting and spend more time doing; The T7 is embedded with PCIe NVMe technology that brings fast read and write speeds up to 1,050/1,000 MB/s¹, making it almost twice as fast as the T5
  • ALWAYS MAKE THE SAVE: Compact design with massive capacity; With capacities up to 4TB, save exactly what you need to your drive – from large working files to game data and everything in between
  • ADAPTS TO EVERY NEED: Whether using a PC or mobile phone, count on the T7 for extensive compatibility²; It’s a true team player when it comes to heavy-duty application usage or file-saving
  • HI RESOLUTION VIDEO RECORDING: Record Ultra High Resolution (4K 60fs) videos directly onto the T7 Portable SSD with your favorite camera or mobile devices; Supports iPhone 15 Pro Res 4K at 60fps video and more³
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

6. Verify the space you recovered

Run df -h again and check the filesystem you were investigating. If its usage still does not seem to match the directories you inspected, check these possibilities:

  • The scan crossed filesystems: use -x with GNU du or ncdu to keep the scan on one filesystem.
  • Permissions hid files: an unprivileged scan may not be able to read every directory.
  • Sparse files affect the comparison: apparent file size can differ from allocated disk usage, so du totals need not match filesystem totals exactly.

Remember the distinction: df reports filesystem capacity and availability, while du and ncdu estimate usage within directory trees. Their figures answer different questions and may not match exactly.

Quick Recap

Bestseller No. 2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
From Sandisk, a brand professional photographers trust to take on assignments.
$188.90
SaleBestseller No. 4
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.