Skip to content

Instantly share code, notes, and snippets.

@weihanchen
Created November 28, 2017 00:58
Show Gist options
  • Save weihanchen/bd393e762f457072ff97b6db02f15dba to your computer and use it in GitHub Desktop.
Save weihanchen/bd393e762f457072ff97b6db02f15dba to your computer and use it in GitHub Desktop.
Ubuntu
# Find ip exclude non usage
$ ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | grep 'Bcast' | grep -v '0.0.0.0' | cut -d: -f2 | awk '{ print $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment