Which option would help you achieve this task?

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?

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?

A.
PS2='[`hostname`]’

B.
PS1='[`hostname`]’

C.
PS2=”[`hostname`]”

D.
PS1=”[`hostname`]”

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *