I did something crazy at some point that created a file called
-rf
on my filesystem.
Now I can’t figure out how to delete it…I’ve tried:
rm "-rf"rm -rf
These just exit immediately, arrgh!
Anyone know how to remove this file? Preferably without accidentally cleaning out my whole folder.
Solution:
unlink -rf
Or
rm -- -rf