Skip to content

Instantly share code, notes, and snippets.

@d0x
Created March 12, 2015 14:16
Show Gist options
  • Select an option

  • Save d0x/ebf9518e8734b5de8b74 to your computer and use it in GitHub Desktop.

Select an option

Save d0x/ebf9518e8734b5de8b74 to your computer and use it in GitHub Desktop.
Test whether a port is open
nc -z -w5 8.8.8.8 53; echo $? #1=failure 0=success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment