How to combine these two commands in bash:
lsof -i :port kill pid
The first returns the PID I want to kill in order to free the port. The second one kills the returned PID.
I do this because I donβt know how to kill the dock web server in the Netbeans IDE on OSX. Is there any way?
source share