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
migrated from stackoverflow.com Apr 10 '11 at 14:03
This question came from our site for professional and enthusiast programmers.
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