💻 Software
What command do I need to use to remove a file called `-rf`?
Fresh7 days ago
Mar 15, 20269254 viewsConfidence Score1%
1%
Problem
I did something crazy at some point that created a file called on my filesystem. Now I can't figure out how to delete it... I've tried: These just exit immediately, arrgh! Anyone know how to remove this file? Preferably without accidentally cleaning out my whole folder.
Error Output
rm "-rf" rm \-rf
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: What command do I need to use to remove a file called `-rf`?
Low Risk
Or
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix