hostnamectl

hostnamectl

The manual page and help for the hostnamectl linux command. Use the hostnamectl command to retrieve or change the hostname of the system.