SIMULATION
Which command is used to set the hostname of the local system? (Specify ONLY the command without any path or parameters.)
SIMULATION
Which command is used to set the hostname of the local system? (Specify ONLY the command without any path or parameters.)
hostnamectl is part of systemd, and provides a proper API for dealing with setting a server’s hostnames in a standardized way. So best answer should be hostname.