Skip to main content
  1. Posts/

Argument list too long

··39 words·1 min·

If you have a ton of files in a directory and you need to remove them, but rm says that the “argument list [is] too long”, just use find and xargs:

find . -name 'filename*' | xargs rm -vf