Skip to content

Instantly share code, notes, and snippets.

@andrit
Created July 28, 2018 22:23
Show Gist options
  • Save andrit/9e677a8622ddf2a9fdc6561378de443b to your computer and use it in GitHub Desktop.
Save andrit/9e677a8622ddf2a9fdc6561378de443b to your computer and use it in GitHub Desktop.

function findbyport() { sudo lsof -P -iTCP:$1 -sTCP:LISTEN }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment