To change the hostname of an Ubuntu machine, there are a couple of files that need editing. Firstly, open the /etc/hostname file and change the hostname in here to the one you wish to use. 09:51:17 0 ~ jason$ sudo vim /etc/hostname09:51:17 0 ~ jason$ sudo vim /etc/hostname Then edit the /etc/hosts file and change …

To set a new hostname on a Cisco router, switch to privileged exec mode by typing enable at the prompt. Enter configuration mode by entering this command. eng_floor_2#configure terminaleng_floor_2#configure terminal Then set the hostname by typing this command. eng_floor_2(config)#hostname eng_floor_2eng_floor_2(config)#hostname eng_floor_2 Now the proper hostname has been set on the switch. eng_floor_2#show running-config Building configuration… …