Skip to content

Instantly share code, notes, and snippets.

@maxkarelov
Created November 23, 2015 13:11
Show Gist options
  • Save maxkarelov/f78d84efca33ec70e43e to your computer and use it in GitHub Desktop.
Save maxkarelov/f78d84efca33ec70e43e to your computer and use it in GitHub Desktop.
get private ip address snippet
ifconfig eth1|grep 'inet addr:'|cut -d: -f2|cut -d' ' -f1|awk '{ print $1 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment