Skip to content

Instantly share code, notes, and snippets.

@austintaylor
Created August 26, 2011 15:23
Show Gist options
  • Save austintaylor/1173652 to your computer and use it in GitHub Desktop.
Save austintaylor/1173652 to your computer and use it in GitHub Desktop.
Bash function to show your local IP address
function ip() {
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