It is to be noted that where you ran the command hostname server1 and issue the reboot command and you notice that the hostname has reverted back to what it was before the reboot, the following commands you should have used to change the hostname instead is: "hostnamectl set-hostname server1" (Option B)
The hostnamectl command offers an appropriate API for controlling and changing the hostname of a Linux system. The function is also useful for changing the hostname without having to locate and alter the /etc/hostname file on a specific system.
A hostname is a label provided to a computer network-linked device that is used to identify the equipment in various types of electronic transmissions, such as the World Wide Web. Hostnames can be simple single-word or phrase names, or they can be structured.
Learn mroe about hostname:
https://brainly.com/question/9689522
#SPJ1