Created
July 16, 2015 05:39
-
-
Save vordan/b273477b9efc99698d34 to your computer and use it in GitHub Desktop.
Show IP address only in Linux
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
ip addr show tun0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment