bash Shell Prompt Characters Character
\a The bell character
\d The date in the format ‘‘Day Month Date’’
\e The ASCII escape character
\h The local hostname
\H The fully qualified domain hostname
\j The number of jobs currently managed by the shell
\l The basename of the shell’s terminal device name
\n The ASCII newline character
\r The ASCII carriage return
\s The name of the shell
\t The current time in 24-hour HH:MM:SS format
\T The current time in 12-hour HH:MM:SS format
\@ The current time in 12-hour am/pm format
\u The username of the current user
\v The version of the bash shell
\V The release level of the bash shell
\w The current working directory
\W The basename of the current working directory
\! The bash shell history number of this command
\# The command number of this command
\$ A dollar sign if a normal user, or a pound sign if the root user
\nnn The character corresponding to the octal value nnn
\\ A backslash
\[ Begins a control code sequence
\] Ends a control code sequence