Kill app with opened port Publikováno 30.6.202030.6.2020 , autor: Pepa Put somewhere in Your ~/.zshrc or other init shell script: kill_port() { if [ -n "$1" ]; then lsof -ti :"$1" | xargs kill else echo "Pass in port number." fi }