hostname / hostnamectl
Updated 03-Aug-2025 How to set and modify hostnames hostname commands hostname and hostnamectl will display the static, transient hostnames (hostnamectl also provides other host information). sudo nano /etc/hostname can be used to edit the hostname that will be displayed upon reboot or restart. This can be done more easily from the command with sudo hostnamectl ... Read more