How To Find Files Bigger Or Smaller Than X Size In Linux

4 Responses

  1. MyDisqussion says:

    The find command can also display a long listing of all the files it finds by using the -exec switch. The command below will find all of the files between 30M and 40M, and display a long listing of each file.

    find . -type f -size +30M -size -40M -exec ls -l {} +

  2. Hugo says:

    “Here, the dot (.) represents the whole file system.”
    is not correct. The dot stands for the actual folder you launch the find command from. For the whole file system you have to use:
    $ find / -type f -size +4G

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.