Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove a file "--remove-files"?

Tags:

linux

I tested:

rm \-\-remove-files

but I am unable to remove it. How can I do it?

like image 785
Léo Léopold Hertz 준영 Avatar asked Dec 13 '25 20:12

Léo Léopold Hertz 준영


1 Answers

rm ./--remove-files.

Note that -- isn't interpreted by the shell, and by extension, escaping it with \ will have no effect.

like image 51
Logan Capaldo Avatar answered Dec 15 '25 08:12

Logan Capaldo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!