Double quotes allow variable and command expansion.
Section: Quoting
Expandable double-quoted string
bash
bash
echo "Path is $HOME"Explanation
Usually the safest choice around variable expansions.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Quoting
Escape one character
Backslash escapes the next character in many contexts.
ANSI-C quoted string
Use ANSI-C quoting for escapes like newline and tab.