This question already has an answer here:
When setting the value of the primary command prompt (PS1) the followig two cases
export PS1="\u" export PS1="\\u"
gives the same result:
as a command prompt string.
How does the
\\u differs if the both results is identical? Shouldn't the
\\u outputs just
\\ denotes backslash itself?