Created
November 23, 2018 21:39
-
-
Save r-pufky/0d574a408f83e1843539b48e198e3862 to your computer and use it in GitHub Desktop.
Return default route adapter interface.
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 route get to 8.8.8.8 | sed -n 's/.*src \([0-9.]\+\).*/\1/p' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment