« Back to File systems: Frequently Asked Questions

How to see files greater than a specific size

This article has last been updated at .

How to see files greater than a specific size on Linux?

Use the df or find command to find files greater than a minimum size.

du -h --threshold=20K

Use the du command we can count the directory size. By using it with the options --human-readable and --summarize, a summarized total will be displayed.

Define a threshold

To see files bigger than 20 kilobytes, define the threshold.

du -h --threshold=20K

To see files smaller than the defined threshold, add a minus before the number.

Looking in multiple directories

Another option is using find and define the minimum size of a file. For example all files that are at least 1 megabyte:

find . -size +1M

Relevant commands in this article

Like to learn more about the commands that were used in this article? Have a look, for some there is also a cheat sheet available.

See the full list of Linux commands for additional system administration tools.

Other questions related to Linux file systems

Feedback

Small picture of Michael Boelen

This article has been written by our Linux security expert Michael Boelen. With focus on creating high-quality articles and relevant examples, he wants to improve the field of Linux security. No more web full of copy-pasted blog posts.

Discovered outdated information or have a question? Share your thoughts. Thanks for your contribution!

Mastodon icon

Related articles

Like to learn more? Here is a list of articles within the same category or having similar tags.