List files bigger than filesize specified

How can I make ls (or any other command) list only files bigger than a specific file size?


Solution 1:

Use find and its -size flag.

To find files larger than 100MB:

find . -type f -size +100M

If you want the current dir only:

find . -maxdepth 1 -type f -size +100M

Solution 2:

If you wish to see all files over 100M and to see where they are and what is their size try this:

find . -type f -size +100M -exec ls -lh {} \;

Solution 3:

Use the following:

find / -size gt 2MB

or:

find / -size => 2000000