Pt. 2 Ch. 13 Customizing the Prompt Flashcards
1
Q
ASCII bell. This makes the computer beep when it is encountered.
A
\a
2
Q
Current date in day, month, date format. For example, “Mon May
26.”
A
\d
3
Q
Hostname of the local machine minus the trailing domain name.
A
\h
4
Q
Full hostname.
A
\H
5
Q
Number of jobs running in the current shell session
A
\j
6
Q
Name of the current terminal device.
A
\l
7
Q
A newline character
A
\n
8
Q
A carriage return
A
\r
9
Q
Name of the shell program
A
\s
10
Q
Current time in 24-hour hours:minutes:seconds format.
A
\t
11
Q
Current time in 12-hour format.
A
\T
12
Q
Current time in 12-hour AM/PM format
A
\@
13
Q
Current time in 24-hour hours:minutes format.
A
\A
14
Q
Username of the current user
A
\u
15
Q
Version number of the shell.
A
\v