1. All characters within the single quotation mark retain the meaning of its own character, without being interpreted by bash, echo-e the escape character (\n,\t, etc.) will be interpreted, such as echo-e ' Aa\naa ' will be two lines AA.
2. In addition to $, ' (not single quotes) and \, all characters within the double quotation mark retain the meaning of the character itself without being interpreted by bash. $ and ' inside the double quotation marks, if not escaped by the escape character (\), will unconditionally keep the special meaning under bash, while the escape character (\) is conditional. The escape character is only followed by $, ', double quotes, and \ Four special characters characters have special meaning under bash: escape, in other words, only the above four characters can be escaped in double quotes. If the \ character followed by a character other than four characters in double quotes, \ is \ itself, there is no special meaning. Echo-e when the escape character (\n,\t, etc.) will be interpreted, such as echo-e ' Aa\naa ' will be two lines AA.
The difference between single and double quotes in Linux