Skip to content

Instantly share code, notes, and snippets.

@jaredstehler
Created December 2, 2014 22:44
Show Gist options
  • Save jaredstehler/4d9a5d9f2736be8eeb56 to your computer and use it in GitHub Desktop.
Save jaredstehler/4d9a5d9f2736be8eeb56 to your computer and use it in GitHub Desktop.
/usr/local/bin/whoisonport
#!/bin/sh
lsof -n -i4TCP:$1 | grep LISTEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment