Ran Ran - 6 months ago 66
Linux Question

How to get all the files exceeding certain size and deleting them


  1. I am looking for a linux command to
    get all the files exceeding a
    certain size from the current
    directory and its sub-directories.

  2. Whats the easiest way to delete all these files?


Answer Source

Similar to the exec rm answer, but doesn't need a process for each found file:

find . -size +100k -delete
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download