Created
July 25, 2019 08:47
-
-
Save CharlieGreenman/b0480ede66e8dc7508066c14ca07baec to your computer and use it in GitHub Desktop.
How to get ip address for your current ubuntu server
This file contains hidden or 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 eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment