nerdexam
IBM

C4040-221 · Question #109

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…

The correct answer is C. The output of both commands will be 'ozi' after reboot. See the full explanation below for the reasoning.

Question

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?

Options

  • AThe output of both commands will be 'kiwi' after reboot.
  • BThe output of both commands will be 'texan' after reboot.
  • CThe output of both commands will be 'ozi' after reboot.
  • DThe output of the hostname command will be 'kiwi' and the output of the uname -n command will be texan".

How the community answered

(45 responses)
  • A
    13% (6)
  • B
    9% (4)
  • C
    76% (34)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full C4040-221 Practice