PrepAway - Latest Free Exam Questions & Answers

What will be the output of the hostname and uname -n command when the system reboots?

Two different administrators are asked to change the hostname of a system due to a
misunderstanding The current hostname is set to misunderstanding. The current hostname is set
to ‘ozi’. The first administrator thinks the hostname should be set to ‘kiwi’ and he runs the
command:
# hostname kiwi
He checks his work by running the hostname command again and he sees this output
# hostname kiwi
The second administrator thinks the hostname should be ‘texan’ and he runs the command:
# uname -S texan
He checks his work by running uname -n and sees the output
# uname -n texan
What will be the output of the hostname and uname -n command when the system reboots?

PrepAway - Latest Free Exam Questions & Answers

A.
The output of both commands will be ‘kiwi’ after reboot.

B.
The output of both commands will be ‘texan’ after reboot.

C.
The output of both commands will be ‘ozi’ after reboot.

D.
The output of the hostname command will be ‘kiwi’ and the output of the uname -n command
will be texan”.

Explanation:


Leave a Reply