Created
November 28, 2017 00:58
-
-
Save weihanchen/bd393e762f457072ff97b6db02f15dba to your computer and use it in GitHub Desktop.
Ubuntu
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
# 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