Linux: set hostname using hostnamectl September 23, 2020 troubleshooter Leave a comment To set the hostname of a linux system run the following command in a terminal session Reboot system Continue reading