Created
January 7, 2016 21:12
-
-
Save htmelvis/c0cef083ecc536473b4c to your computer and use it in GitHub Desktop.
Whatsup: Alias for checking running port processes
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
# Check what server processes are currently running on a given port | |
function _checkForRunningServer(){ | |
echo "Currently checking port: $1" | |
lsof -wni tcp\:$1; | |
#would like to expand to pass arg to kill said server ps | |
} | |
#register the alias in your .bashrc or .zshrc | |
alias whatsup=_checkForRunningServer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment