Pt. 2 Ch. 13 Customizing the Prompt Flashcards
ASCII bell. This makes the computer beep when it is encountered.
\a
Current date in day, month, date format. For example, “Mon May
26.”
\d
Hostname of the local machine minus the trailing domain name.
\h
Full hostname.
\H
Number of jobs running in the current shell session
\j
Name of the current terminal device.
\l
A newline character
\n
A carriage return
\r
Name of the shell program
\s
Current time in 24-hour hours:minutes:seconds format.
\t
Current time in 12-hour format.
\T
Current time in 12-hour AM/PM format
\@
Current time in 24-hour hours:minutes format.
\A
Username of the current user
\u
Version number of the shell.
\v
Version and release numbers of the shell.
\V
Name of the current working directory
\w
Last part of the current working directory name.
\W
History number of the current command.
!
Number of commands entered during this shell session
#
This displays a “$” character unless we have superuser privileges.
In that case, it displays a “#” instead.
$
Signals the start of a series of one or more non-printing characters.
This is used to embed non-printing control characters that
manipulate the terminal emulator in some way, such as moving the
cursor or changing text col
[
Signals the end of a non-printing character sequence.
]