Ubuntu Server - Alter Hostname
Change a hostname inwards Ubuntu server is really easy. From the ascendency business terminal, type hostname newname. View the novel hostname alongside hostname command. See the pace yesteryear pace representative on how to alter Ubuntu server hostname below:
- View electrical flow hostname:
- master@SVR01: $ hostname
- SVR01
- Change hostname as well as stance latest hostname:
- master@SVR01: $ sudo hostname Ubuntu
- master@SVR01: $ hostname
- Ubuntu
Don't autumn for it. That doesn't alter anything. The hostname is nonetheless the same equally yous tin laissez passer notice run across at the prompt. Even reboot won't alter anything. The exact method to alter the hostname permanently is yesteryear editing /etc/hostname file. Here is the step:
- Open /etc/hostname alongside your favorite text editor:
- master@SVR01: $ sudo nano /etc/hostname
- master@SVR01: $ sudo shutdown forthwith -r
Now yous tin laissez passer notice alter hostname as well as save. The changed is permanent fifty-fifty afterwards yous reboot your system.
0 Response to "Ubuntu Server - Alter Hostname"
Post a Comment