FG
💻 Software

How do I delete a file named "-p" from bash?

Fresh5 days ago
Mar 15, 20261319 views
Confidence Score0%
0%

Problem

How do I delete a file named in bash? Trying complains that -p is not a valid argument.

Error Output

-p

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I delete a file named "-p" from bash?

Low Risk

Most GNU tools support to terminate the options.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment