Skip to content

Instantly share code, notes, and snippets.

@hindenbug
Created March 16, 2018 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hindenbug/fa5a4e2f60e6410e0ea6dff89fdf3fc9 to your computer and use it in GitHub Desktop.
Save hindenbug/fa5a4e2f60e6410e0ea6dff89fdf3fc9 to your computer and use it in GitHub Desktop.
Today I learned
/sbin/ifconfig eth0 | grep 'inet addr' | cut -d: -f2 | awk '{print $1}'
hostname -I | awk '{print $3}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment