Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \a ASCII bell character
- \d Date in "Tue May 26" format
- \D{format} The format is passed to strftime(3) and the result is inserted into the prompt string; an empty format results in a locale-specific time representation; braces are required
- \e ASCII escape character (033)
- \h Hostname up to the first '.'
- \H Hostname
- \j Number of jobs currently managed by the shell
- \l Basename of the shell’s terminal device name
- \n Newline
- \r Carriage return
- \s Name of the shell, the basename of $0 (the portion following the final slash)
- \t Time in 24-hour HH:MM:SS format
- \T Time in 12-hour HH:MM:SS format
- \@ Time in 12-hour am/pm format
- \A Time in 24-hour HH:MM format
- \u Username of current user
- \v Version of bash (e.g., 2.00)
- \V Release of bash, version + patch level (e.g., 2.00.0)
- \w Current directory, with $HOME abbreviated with a tilde
- \W Basename of current working directory, with $HOME abbreviated with a tilde
- \! History number of this command
- \# Command number of this command
- \$ If the effective UID is 0, a #, otherwise a $
- \nnn The character corresponding to the octal number nnn
- \\ Backslash
- \[ Begin a sequence of non-printing characters, which could be used to embed a terminal control sequence into the prompt
- \] End a sequence of non-printing characters
Advertisement
Add Comment
Please, Sign In to add comment