Literals

Strings

Double quote

  • Variables are expanded
name="Alice"
echo "$name" # Alice

Single quote

  • Variables are not expanded
name="Alice"
echo '$name' # $name

Back quote

  • The command contained within the string is executed, and the string is replaced with the output of the command
dir=`pwd`   # Stores the path of current directory in the variable "dir"

Resources URL: 
notes/bash/resources
Sources URL: 
notes/bash/sources

See Also