Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to kill a service based on port number on mac

lsof -P | grep ':PortNumber' | awk '{print $2}' | xargs kill -9
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #kill #service #based #port #number #mac
ADD COMMENT
Topic
Name
9+1 =