Last active
April 27, 2018 14:32
-
-
Save saii9/edff520129c5519a6e49c74fe5c531de to your computer and use it in GitHub Desktop.
Vagrant, Some help full commands
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 ip of vagrant machine | |
#all the commands are centered around my Vagrant git project | |
vagrant ssh -c "hostname -I | cut -d' ' -f2" 2>/dev/null | |
#get IP of host machine | |
netstat -rn | grep "^0.0.0.0 " | cut -d " " -f10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment