FG
💻 Software

How to create a file with a "#" character in the name in Unix?

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

Problem

I've tried many commands already for creating a file and deleting a file with a character, but it does not work. Can anyone tell me the command to create and then delete a file that begins with ?

Error Output

#

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to create a file with a "#" character in the name in Unix?

Low Risk

The two canonical ways to create/delete files with "funny characters" are Quoting, like alex showed. You may use single or double quotes, depending on your expansion needs. A backslash can be used to escape a single funny charater. This works as lon…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment