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

Ran picture Ran · Feb 20, 2011 · Viewed 27k times · Source
  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

Erik picture Erik · Feb 20, 2011

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

find . -size +100k -delete