Skip to content

Instantly share code, notes, and snippets.

@mohamed-ahmed
Created June 16, 2014 22:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mohamed-ahmed/6bf5025f1ea52be64e27 to your computer and use it in GitHub Desktop.
Get ip address of usb0 device (Linux)
ifconfig | grep usb -1 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment