Guides 11791 Published by

Howtogeek posted an article on the difference between single and double quotes in the Bash Shell



Enclosing text in quotation marks is fairly standard practice on the command line, especially when dealing with files that have spaces in the names, but how do you know whether to use single or double quotes? Let's take a look at the difference, and when you should use one vs the other. The general rule is that double quotes still allow expansion of variables within the quotes, and single quotes don't. Keep reading.
  What's the Difference Between Single and Double Quotes in the Bash Shell?