Created
April 6, 2019 23:34
-
-
Save sloppylopez/baee8abcb2cdcadb5c03771ae6d7706a to your computer and use it in GitHub Desktop.
Find a process listening on targte port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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