In Linux, single quotes ('
), double quotes ("
), and backquotes (`
) serve different purposes. The easiest way to understand their differences is by using the DATE variable, the "date" string, and the date
command.
Important:
'
... Single quotes- Everything within single quotes is interpreted as a string (ignoring any variables).
"
... Double quotes