Skip to content

Instantly share code, notes, and snippets.

@saii9
Last active April 27, 2018 14:32
Show Gist options
  • Save saii9/edff520129c5519a6e49c74fe5c531de to your computer and use it in GitHub Desktop.
Save saii9/edff520129c5519a6e49c74fe5c531de to your computer and use it in GitHub Desktop.
Vagrant, Some help full commands
#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