Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I accidentally created a file called / and another call --reporter, how do I delete them?

Tags:

bash

shell

I've accidentally created a file called / and one called --reporter=test and now I can't delete them, attempting to delete the --reporter file results in rm: illegal option -- -

I haven't attempted to delete the one called / I'm too scared, help!!

like image 413
Helder Roem Avatar asked Oct 31 '25 06:10

Helder Roem


1 Answers

rm ./--reporter=test

should get rid of the first one... I'm not sure about "/" ... can't seem to create one myself. How did you do that?

like image 91
Svend Hansen Avatar answered Nov 01 '25 19:11

Svend Hansen