Last active
April 8, 2018 10:31
-
-
Save FrankFang/022e8c422b61859084eecaa945fe473d 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
checkport() { | |
if [ -z "$1" ]; then | |
echo 'checkport portNumber' | |
else | |
sudo lsof -i -P -n | grep "$1" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment