FG

Getting rid of a file called "-d"

Fresh3 days ago
Mar 15, 2026844 views
Confidence Score0%
0%

Problem

Possible Duplicates: How do I delete a file named "-p" from bash? How to delete file with this name on linux: -]???????q What command do I need to use to remove a file called `-rf`? I've accidentally created a file called: -d I've tried using single and double quote marks as well as wild cards to r…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Getting rid of a file called "-d"

Low Risk

means "end of options". Anything further on the command line following this is interpreted as an argument (i.e. the file name in your case), and not an option.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment