How to Find Files Larger Than 1GB in Ubuntu Linux

The Silent Storage Eaters

If your Ubuntu Linux server or desktop is suddenly running out of storage space, the culprit is usually a handful of massive files hiding deep within the file system. These could be runaway application log files, orphaned database dumps, uncompressed ISO images, or old Docker volumes. Trying to manually click through folders in a graphical file manager to find these space-hogs is incredibly tedious. Instead, you can use a single, powerful terminal command to scan the entire hard drive and generate a list of every file that exceeds a specific size limit.

Using the find Command

The find command is one of the most versatile tools in Linux. By combining it with the -size flag, you can perform highly targeted searches.

  1. Open your Terminal application (Ctrl + Alt + T) or connect to your server via SSH.
  2. To search the entire hard drive (starting from the root directory /) for files larger than 1 Gigabyte, type the following command:
  3. sudo find / -type f -size +1G
  4. Press Enter and provide your administrator password. (You must use sudo so the command has permission to look inside restricted system folders).

How the Command Works

  • / tells the system to start searching from the absolute top of the hard drive.
  • -type f restricts the search to actual files, ignoring directories (which technically have their own small file sizes).
  • -size +1G specifies the criteria: anything larger (+) than 1 Gigabyte (G). You can easily change this to +500M for 500 Megabytes, or +5G for 5 Gigabytes.

Improving the Output

The basic command will simply spit out a raw list of file paths. If you want a more readable output that actually shows the exact size of the files it found, you can pipe the results into the ls (list) command:

  1. sudo find / -type f -size +1G -exec ls -lh {} +

This modified version will return a beautifully formatted list displaying the file permissions, the owner, the exact human-readable size (e.g., 2.4G), and the file path, making it much easier to decide which files are safe to delete.

Get the best tech tips delivered straight to your inbox.

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