nerdexam
Oracle

1Z0-409 · Question #136

As a root user you want to modify the default shell prompt to include the hostname as part of the prompt. Also you want the change in the hostname to reflect on the prompt immediately. Which option…

The correct answer is B. PS1='[`hostname`]'. See the full explanation below for the reasoning.

Question

As a root user you want to modify the default shell prompt to include the hostname as part of the prompt. Also you want the change in the hostname to reflect on the prompt immediately. Which option would help you achieve this task?

Options

  • APS2='[hostname]'
  • BPS1='[hostname]'
  • CPS2=''[hostname]''
  • DPS1=''[hostname]''

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    81% (21)
  • C
    8% (2)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-409 Practice