Created
August 5, 2015 14:22
-
-
Save aleksandarristic/7595c1584fc9d4df601a to your computer and use it in GitHub Desktop.
Get network info from bash
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 -o -f inet addr show $(ip route list | awk '/^default/ {print $5}') | awk '{print $4}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
...using the default interface.