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)- A8% (2)
- B81% (21)
- C8% (2)
- D4% (1)
Community Discussion
No community discussion yet for this question.