Single quotes:
What you see is what you get: The contents of the single quotation mark are output as-is, or what you see in single quotes is what you output.
Double quotes:
Output The contents of the double quotation marks: If there are commands, variables, etc. in the content, the variables, commands are parsed out and then the final content is output.
the command or variable is written as ' command or variable ' or $(command or variable) in double quotation marks .
No quotation marks:
output of the content, may not be a string containing a space as a whole output, if the contents of the command, variables, etc., will first parse the variables, commands, and then output the final content, if the string with a space and other special characters, it can not be fully output, Double quotation marks are required, generally consecutive strings, numbers, paths, etc. can be used, but it is best to use double quotation marks instead.
This article is from "A Little Rookie" blog, please be sure to keep this source http://aresxin.blog.51cto.com/4734097/1602629
The difference between single quotes, double quotes, and no quotation marks in a Linux shell