Question 11 of 20Pro Only
What is the difference between single quotes, double quotes, and backticks in Bash? Can you give examples of when to use each?
Sample answer preview
In Bash, the three types of quoting serve different purposes and behave very differently. Single quotes preserve everything literally. Whatever you put inside single quotes will be treated exactly as written.
single quotesdouble quotesbackticksvariable expansioncommand substitution$() syntax