How to see files greater than a specific size
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=20KUse 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