What characters to escape in terminal?
By Jessica Wood •
I know, that there are several characters that should be escaped. For example:
$ cd /home/Username\ with\ spaces/DesktopI know another option is to enclose it in single-quotes.
$ cd '/home/Username with spaces/Desktop'Is there a complete list of these characters? Or any rule of thumb?
11 Answer
I have wished for a "complete list". I used to have a filter program compiled that would escape every "special character" that I could think of.
A good start: ! ? $ % $ # & * ( ) blank tab | ' ; " < > \ ~ ` [ ] { }
I'm sure there are others that I have missed.