Skip to content

Instantly share code, notes, and snippets.

@sloppylopez
Created April 6, 2019 23:34
Show Gist options
  • Save sloppylopez/baee8abcb2cdcadb5c03771ae6d7706a to your computer and use it in GitHub Desktop.
Save sloppylopez/baee8abcb2cdcadb5c03771ae6d7706a to your computer and use it in GitHub Desktop.
Find a process listening on targte port
function whoListenAt
echo -e "Checking who is listening at" $argv[1] '🎳' | colorStuff
lsof -nP -i4TCP:$argv[1] | grep LISTEN
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment