Skip to content

Instantly share code, notes, and snippets.

@SourceCode
Created July 16, 2017 08:43
Show Gist options
  • Select an option

  • Save SourceCode/c173230cf3ceb9f0f07ddc842a95b061 to your computer and use it in GitHub Desktop.

Select an option

Save SourceCode/c173230cf3ceb9f0f07ddc842a95b061 to your computer and use it in GitHub Desktop.
echo $(hostname -I | cut -d\ -f1) $(hostname) | sudo tee -a /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment