How to Find Large Files in Linux

Locate large files without crossing into other mounted filesystems.

find can filter files by type and size. Use -xdev to keep the scan on one filesystem.

Step by step

1 Find large files

$ find / -xdev -type f -size +500M -print 2>/dev/null

Searches regular files above 500 MB and hides permission errors.

2 Show readable sizes

$ find / -xdev -type f -size +500M -exec ls -lh {} + 2>/dev/null

ls -lh adds familiar units.

3 Narrow the search

$ find /var/log -type f -size +100M -exec ls -lh {} +

A smaller starting path is faster and usually more useful.

Tips worth knowing

Frequently asked questions

How do I find files larger than 1 GB?

Use `find / -xdev -type f -size +1G` with an appropriate starting path.

Why do I see permission denied?

Some directories are not readable by your user; use appropriate privileges or suppress stderr.

If it goes wrong

No space left on device

A filesystem is full — confirm which one, and whether you ran out of bytes or inodes.

The commands behind it

find

Locate files anywhere in a directory tree by name, type, size, date — and act on them.

df & du

See free space per filesystem and find what is eating your disk, directory by directory.

Concepts involved: Inode · Mount

More how-to guides

Check disk space in Linux

See how much space is left, and find out what is using it.

Extract a .tar.gz archive

Unpack tar.gz, tar.bz2, tar.xz and zip archives from the command line.

Free a port that is already in use

Find which process holds a port and stop it cleanly.

Find and replace text in files

Replace text in one file or across a whole project, safely.