Last active
December 4, 2018 04:35
-
-
Save Diligens/ed4cd24030bb712258ea49f56e754b4a to your computer and use it in GitHub Desktop.
Change Hostname in Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. hostname NEW_NAME_HERE | |
This will change the hostname until next reboot. | |
The change won’t be visible immediately in your current terminal. Start a new terminal to see the new hostname. | |
2. To change the name permanently, run command to edit the host files: | |
sudo gedit /etc/hostname /etc/hosts | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment