Last active
January 22, 2025 14:04
-
-
Save fjrti/b36ab1d392c8cd422513b80147afa8b8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#! /bin/bash | |
# Usage: ./who_is_listening.sh <PORT> | |
echo "What process is listening to $1" | |
lsof -nP -i4TCP:$1 | grep LISTEN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment