linuxdelete-file

Delete files exceeding certain size


  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?


Solution

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

    find . -size +100k -delete