Skip to content

Instantly share code, notes, and snippets.

@brpaz
Created November 15, 2014 10:15
Show Gist options
  • Save brpaz/89d1f3ffeb744ee99d3f to your computer and use it in GitHub Desktop.
Save brpaz/89d1f3ffeb744ee99d3f to your computer and use it in GitHub Desktop.
chnage hostname #hostname #sysadmin #hostname

Change hostname of Linux machine

*Edit /etc/hostname, make the name change, save the file.

*You should also make the same changes in /etc/hosts file

  • Run sudo /etc/init.d/hostname restart or sudo service hostname restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment