Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ruisebastiao/3f165241263e0bd19cd7093a7dce80cb to your computer and use it in GitHub Desktop.
Save ruisebastiao/3f165241263e0bd19cd7093a7dce80cb to your computer and use it in GitHub Desktop.
Get your Private IP Address with the ifconfig Command
ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment