Skip to content

Instantly share code, notes, and snippets.

@n0toose
Created September 20, 2020 07:34
Show Gist options
  • Save n0toose/17d3c3f0048984ed0d8b5f6c1480eb1a to your computer and use it in GitHub Desktop.
Save n0toose/17d3c3f0048984ed0d8b5f6c1480eb1a to your computer and use it in GitHub Desktop.
Show public IPv6 address
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