PrepAway - Latest Free Exam Questions & Answers

Which of the statements is the result of the following command?

Which of the statements is the result of the following command?

$ export PS2="[uw]\$ "

A.
The primary bash prompt uses underlining and white background (black foreground)

B.
The primary bash prompt includes the username and working path

C.
The secondary bash prompt uses underlining and white background (black foreground)

D.
The secondary bash prompt includes the username and working path

E.
The bash prompt maps mouse button one as Ctrl-U (undo) and mouse two as Ctrl-W (write line to file)

Explanation/Reference:
PS2 specifies the secondary bash prompt (used when expanding input over several lines).
u = username
w = working dir

Others:
d = the date
h = the hostname
j = the number of jobs currently managed by the shell
$ = if the effective UID is 0, a #, otherwise a $


Leave a Reply