Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I create a file starting from $SHELL, using quotes like " ",' ', \?

I tried, but it's not working.

share|improve this question
Do you mean "special characters" by "symbols"? If not, what else? Which specific commands have you tried, and what were the results? – slhck Jul 26 '12 at 16:42
[nitesh@ical ~]$ mkdir '$SHELL' the above command will work, it allows you to create the directory with special symbols like "$" – Nitesh Aug 10 '12 at 10:17
up vote 0 down vote accepted

You have to escape the special characters using the shell escape \ e.g.

touch \'test
share|improve this answer
THANK YOU even \$SHELL will work – Nitesh Aug 10 '12 at 10:21
in addition: if you want to create files starting with - you can use touch -- -myfile or touch ./-myfile – pqnet Sep 1 '14 at 8:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.