Pt. 2 Ch. 13 Customizing the Prompt Flashcards

1
Q

ASCII bell. This makes the computer beep when it is encountered.

A

\a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Current date in day, month, date format. For example, “Mon May
26.”

A

\d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Hostname of the local machine minus the trailing domain name.

A

\h

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Full hostname.

A

\H

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Number of jobs running in the current shell session

A

\j

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Name of the current terminal device.

A

\l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A newline character

A

\n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A carriage return

A

\r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Name of the shell program

A

\s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Current time in 24-hour hours:minutes:seconds format.

A

\t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Current time in 12-hour format.

A

\T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Current time in 12-hour AM/PM format

A

\@

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Current time in 24-hour hours:minutes format.

A

\A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Username of the current user

A

\u

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Version number of the shell.

A

\v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Version and release numbers of the shell.

A

\V

17
Q

Name of the current working directory

A

\w

18
Q

Last part of the current working directory name.

A

\W

19
Q

History number of the current command.

A

!

20
Q

Number of commands entered during this shell session

A

#

21
Q

This displays a “$” character unless we have superuser privileges.
In that case, it displays a “#” instead.

A

$

22
Q

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

A

[

23
Q

Signals the end of a non-printing character sequence.

A

]