Skip to main content
Formatting
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

In my case, it turned out I was attempting to delete a whole lot of .zip.zip files with dashes in their names.

'man rm'man rm mentions using '--'-- to prevent the command from processing further options.

rm -rf -- *.zip

Did the trick.

In my case, it turned out I was attempting to delete a whole lot of .zip files with dashes in their names.

'man rm' mentions using '--' to prevent the command from processing further options.

rm -rf -- *.zip

Did the trick.

In my case, it turned out I was attempting to delete a whole lot of .zip files with dashes in their names.

man rm mentions using -- to prevent the command from processing further options.

rm -rf -- *.zip

Did the trick.

Source Link
JS.
  • 111
  • 4

In my case, it turned out I was attempting to delete a whole lot of .zip files with dashes in their names.

'man rm' mentions using '--' to prevent the command from processing further options.

rm -rf -- *.zip

Did the trick.