Skip to content

Instantly share code, notes, and snippets.

@bindiego
Created September 16, 2014 07:22
Show Gist options
  • Save bindiego/7af57b1a71c0888ec134 to your computer and use it in GitHub Desktop.
Save bindiego/7af57b1a71c0888ec134 to your computer and use it in GitHub Desktop.
Display ip address
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