removing files starting with hyphen “-” , from console

rm -- ----myfile

The “–” after rm prevents processing of more options, so everything after it will not be taken as option.

This entry was posted in Uncategorized. Bookmark the permalink.