Skip to content

Instantly share code, notes, and snippets.

@virullius
Last active August 29, 2015 14:13
Show Gist options
  • Save virullius/ecbba5b6c6c82f241e7f to your computer and use it in GitHub Desktop.
Save virullius/ecbba5b6c6c82f241e7f to your computer and use it in GitHub Desktop.
simple clean list of network interfaces and IP (v4) addresses - linux, bash
ip addr show | grep 'inet ' | grep -v -E 'lo$' | awk -F ' ' '{print $NF, "\t", $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment