Created
October 18, 2018 10:48
-
-
Save rbanffy/5e3b04ca4555d37d744a1f0b5756e9a2 to your computer and use it in GitHub Desktop.
Make a sane hostname for my VMs
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
echo vm-$(ifconfig | fgrep ether | head -n 1 | awk '{ print $2 }' | sed -r s/[:]/-/g) > /etc/hostname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment