Created
February 25, 2017 10:50
-
-
Save jonathan-kosgei/3e01375076e3c3ad9bf90bab6c2ff47f to your computer and use it in GitHub Desktop.
Command to get internal ip programmatically
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
# From this askubuntu question http://askubuntu.com/a/604691/280044 | |
ip route get 8.8.8.8 | awk '{print $NF; exit}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment