Created
May 6, 2018 11:49
-
-
Save sabahtalateh/76676a90dcb5f98ecef11096578bd4a3 to your computer and use it in GitHub Desktop.
lsof macos
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
# Combine with other protocols if needed. | |
# -P Prevent convertion from service name to number, -iTCP - (-i{PROTO} select given protocols), | |
# -sTCP:LISTEN (-s select give protocol state) | |
lsof -PiTCP -sTCP:LISTEN | grep {portnumber} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment