Quickzi: Find files over a certain size on Linux

Here’s a quick tip for finding files over 100M on Linux.

# find /home/adam/ -size +100M -exec ls -lh {} \; | awk '{print $5 , $8}'

Note that if you change 100M in the command you can find files with any size.   Also, replace /home/adam with any directory you wish.

2 thoughts on “Quickzi: Find files over a certain size on Linux

  1. If you just need a quick method for finding files over 100M all you need is this:
    # find /home/adam/ -size +100M

    You can also look for files under 100M:
    # find /home/adam/ -size -100M

    Or files between 90M and 110M
    # find /home/adam/ -size +80M -and -size -110M

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>