- **Epistemic status:** #budding The hostname identifies your [[Linux]] system in the network, and it is displayed in places such as the terminal. The intention is to inform you on which system you're working with, since you could be managing multiple systems through [[SSH]]. You can utilize any terminal text editor for the following tutorial, such as Nano, Emac, [[Vim]], or [[Vi]]. The hostname must be changed in 2 locations. Make sure to only use the letters 'a' to 'z' (upper or lower), digits '0' to '9', and the dash '-'. Let's get started by entering the following command, replacing the text editor for the one you wish: ```bash sudo vi /etc/hostname ``` This file will only contain on the first line the hostname. Change the name for the new hostname that you desire. Enter the following command for the second location: ```bash sudo vi /etc/hosts ``` Replace any occurrence of the existing computer name with your new one. Save, quit and reboot the system by typing `reboot` command. The new name should be reflected. --- ## References - Brown, Korbin. “How to Change Hostname on Linux.” _Linux Tutorials - Learn Linux Configuration_ (blog). Accessed May 10, 2022. <https://linuxconfig.org/how-to-change-hostname-on-linux>. - Hoffman, Chris. “How to Change Your Hostname (Computer Name) on Ubuntu Linux.” How-To Geek. Accessed May 10, 2022. <https://www.howtogeek.com/197934/how-to-change-your-hostname-computer-name-on-ubuntu-linux/>. - March 27, Author: Vivek Gite Last updated:, and 2022 0 Comments. “Arch Linux Change Hostname (Computer Name).” nixCraft, March 27, 2019. <https://www.cyberciti.biz/faq/arch-linux-change-hostname-computer-name/>.