You can print other special characters in the terminal using the echo command as well. Here are some examples:
-
Exclamation mark (
!):echo "!" -
At symbol (
@):echo "@" -
Hash (
#):echo "#" -
Dollar sign (
$):echo "\$" -
Ampersand (
&):echo "&" -
Asterisk (
*):echo "*" -
Parentheses (
(and)):echo "( )" -
Quotes (
"and'):echo "\"Single quotes\" and 'Double quotes'"
For characters that have special meanings in the shell (like $, &, *, etc.), you may need to escape them with a backslash (\) or enclose the entire string in single quotes (') to prevent the shell from interpreting them.
