Escape characters


We can use escape characters to remove special meaning of characters from Bash. Like in the following example:

$ echo $USER
carol

where the $USER text gets interpreted as an environment variable. We can print the literal text if we add a backslash character ( \ ) before the string.

$ echo \$USER
$USER

where the echo command prints the text as is.