Created
September 20, 2020 07:34
-
-
Save n0toose/17d3c3f0048984ed0d8b5f6c1480eb1a to your computer and use it in GitHub Desktop.
Show public IPv6 address
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 dev eth0 | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d' | grep -v "fe80" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment