« Back to File systems: Frequently Asked Questions

How to see files great than a specific size

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.

Other questions related to Linux file systems

Feedback

Is the described answer not working or incorrect, got another tip or question? Share your thoughts!