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 #?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
migrated from stackoverflow.com Apr 10 '11 at 14:03
|
The two canonical ways to create/delete files with "funny characters" are
Modern versions of Unix utilities often support the double dash to indicate the end of options. On such systems, Note that you cannot create or remove files with a slash or ASCII NUL in their name. If you have such a file (I've seen them), something in your file system has gone terribly wrong. In your particular case with the hash
With these you can simply |
||||
|
|
|
To make...
To delete...
|
|||||||||||||
|