Created
March 29, 2016 13:40
-
-
Save lg3bass/0b41d4c1a65b1e31e977 to your computer and use it in GitHub Desktop.
Get the IP address of your mac from the command line.
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 the ip address | |
ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment