Skip to content

Instantly share code, notes, and snippets.

@binarykore
Last active July 24, 2026 20:47
Show Gist options
  • Select an option

  • Save binarykore/bfbf2b237240f6c8b3e0006bc73242c0 to your computer and use it in GitHub Desktop.

Select an option

Save binarykore/bfbf2b237240f6c8b3e0006bc73242c0 to your computer and use it in GitHub Desktop.
Show Default of Gateway in a Network..
#!/bin/bash
ip route | grep default | awk '{print $3}'
//REMOTE_ADDR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment