Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk3 min

How to Find What’s Filling Your Linux Disk—and Free Space Safely

Use df to identify the full filesystem, then inspect its directories with du or ncdu before choosing a safe cleanup method.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Start with df -h to see which mounted filesystem is running out of space, then use du or ncdu to find the large directories on that filesystem. Identify what a file is before removing it; deleting an unfamiliar system file can break software or the operating system.

Find the filesystem that is low on space

Run:

df -h

This reports capacity and available space for mounted filesystems in human-readable units. To check the filesystem containing a particular location, such as your home directory, pass that path:

As an Amazon Associate I earn from qualifying purchases.

df -h /home

df reports mounted filesystems; it cannot show the capacity of a filesystem that is not mounted. Its job is to tell you where space is scarce, not which individual files are responsible. See the GNU Coreutils df manual.

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

Drill down to large directories

Once you know which filesystem is full, scan its mount point or a directory on it. On GNU/Linux systems with the documented GNU options, use:

#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
sudo du -xhd1 /path

Replace /path with the relevant mount point or directory. The options limit the scan to one directory level and keep it from crossing into other filesystems. du recursively estimates space used by the files and directories it can scan. Using sudo can help include directories your account cannot read, but do not treat elevated access as a reason to delete unfamiliar files. Option availability can differ on non-GNU systems. See the GNU Coreutils du manual.

Repeat the command on a large subdirectory to narrow the search. For example, if /home is large, scan /home/yourname, then its relevant subdirectories. Focus on the filesystem df identified: a scan that crosses a mount boundary may include data that belongs to another filesystem.

Browse usage interactively with ncdu

If you prefer navigating a directory tree in a terminal, ncdu provides an interactive, curses-based view. Run:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

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) | External Solid State Drive, Compatible with Laptops & Tablets, Up to 2M Drop Protection, USB 3.2 Gen 2, USB-C to USB-A Cable
  • 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

Use the path for the filesystem or directory you are investigating. The -x option keeps the scan on one filesystem. Ubuntu Noble’s manual documents ncdu version 1.19-0.1 and includes a read-only mode, -r, which disables deletion and shell-spawning features:

ncdu -r -x /path

Availability and options depend on the distribution’s ncdu version. Consult the Ubuntu Noble ncdu manual for the documented behavior.

Use Ubuntu’s desktop storage tools

On Ubuntu desktops, the documentation lists Disk Usage Analyzer, System Monitor, and Usage for checking storage capacity and folder usage. Which applications and labels are available can vary by Ubuntu release and desktop environment. See Ubuntu’s Disks & storage help.

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

Choose cleanup actions based on what you found

Large does not automatically mean safe to remove. Check what the content is and whether you still need it. Common places worth inspecting include Downloads, media collections, virtual-machine images, container data, and project or build files. Ubuntu’s guidance is to understand what is taking space before deciding what to remove, and to leave system-side content alone unless you understand the cleanup operation.

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

For important personal files, make a separate backup before deleting the originals. Ubuntu recommends keeping a copy somewhere separate, preferably on another device such as an external disk; confirm the backup is complete and usable before removing local copies. See Ubuntu’s disk-usage guidance.

On Debian or Ubuntu, clear APT’s package cache

These commands apply to systems that use APT, not every Linux distribution:

Rank #4
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • 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.
  • sudo apt clean clears retrieved package files from APT’s cache.
  • sudo apt autoclean removes cached package files that can no longer be downloaded.

They address cached package files; they do not identify or clean unrelated personal data.

Review automatically installed packages before removing them

On an APT-based system, sudo apt autoremove proposes removing automatically installed dependencies that are no longer needed. Read the proposed removal list before confirming. If it includes software or components you expect to keep, cancel and investigate rather than accepting the list blindly. The Ubuntu Noble APT manual documents these cleanup operations.

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

Limit archived systemd journal logs, if applicable

If your system uses the systemd journal, first check its current disk use:

Best Value
Sale
Samsung T7 Portable SSD 1TB Titan Gray, USB 3.2 Gen 2, Up to 1,050MB/s | Reliable External Solid State Drive Storage for Gaming, Students, Professionals (MU-PC1T0T/AM)
  • 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³
journalctl --disk-usage

You can request size- or time-based cleanup of archived journal files with commands such as:

sudo journalctl --vacuum-size=500M
sudo journalctl --vacuum-time=30days

These examples set a size target of 500 MB or retain archived logs from the last 30 days, respectively. Vacuuming removes archived journal files, not active ones, so the reported total may remain above the requested size. This applies only where systemd journaling is in use. See the systemd version 255 journalctl manual.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Check the result and investigate mismatched totals

After cleaning, run df -h again and check the same filesystem you inspected. If the du totals do not account for the space reported by df, consider whether the scan crossed a filesystem boundary, whether permissions prevented it from seeing some files, or whether sparse files make apparent size differ from allocated disk usage. These tools measure at different levels, so their numbers need not match exactly.

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

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

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

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.