Q. Which of the following commands will change the hostname of a Linux machine?
β
Correct Answer: (B)
hostnamectl set-hostname
Explanation: 'hostnamectl set-hostname' is used to change the system's hostname.