Created
November 14, 2017 21:08
-
-
Save ohshhh/096b7df153c76cdd76ed32e9ed791821 to your computer and use it in GitHub Desktop.
Get vagrant box guest IP from host
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
Get vagrant box guest IP from host | |
VAGRANT IP | |
vagrant ssh -c "hostname -I | cut -d' ' -f2" 2>/dev/null | |
(OS X): copy it to clipboad | |
vagrant ssh -c "hostname -I | cut -d' ' -f2" 2>/dev/null | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment