How to Find Files Larger Than a Specific Size in Ubuntu (find -size +)

The Disk Space Crisis

One of the most common emergencies a Linux server administrator faces is the dreaded “No space left on device” error. When a database or web server suddenly crashes because the hard drive is 100% full, you do not have time to manually check the file sizes of thousands of folders. A runaway log file or a failed backup script has likely generated a massive, multi-gigabyte file hidden deep within the file system. To instantly identify the exact file consuming your storage, you must instruct the Linux search engine to filter files based exclusively on a minimum size threshold.

Using the find Command with -size +

The Linux find command utilizes the -size flag combined with the plus (+) operator to search the entire file system for files that are strictly larger than the specified parameter.

  1. Open your Terminal application (Ctrl + Alt + T) or log into your server via SSH.
  2. To scan the entire root file system (/) and return only files that are larger than 1 Gigabyte, type the following command exactly:
  3. sudo find / -type f -size +1G
  4. Press Enter and provide your administrator password.

Targeted Deletion

Prefixing the command with sudo is mandatory, otherwise you will be locked out of the root system folders where runaway logs usually hide. The search engine will recursively scan the drive and output the absolute path of every file exceeding 1GB. You can adjust the suffix depending on your needs: use M for Megabytes (e.g., -size +500M) or k for Kilobytes (e.g., -size +10000k). The plus sign (+) is critical. If you omit the plus sign, the engine will look for files that are exactly 1 Gigabyte in size, which will almost certainly return zero results.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.