Skip to content

Instantly share code, notes, and snippets.

@htmelvis
Created January 7, 2016 21:12
Show Gist options
  • Save htmelvis/c0cef083ecc536473b4c to your computer and use it in GitHub Desktop.
Save htmelvis/c0cef083ecc536473b4c to your computer and use it in GitHub Desktop.
Whatsup: Alias for checking running port processes
# 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