Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

kill a port in ubuntu

kill -9 $(sudo lsof -t -i:'portName')
//Ex. if portname is 3000
//then we will execute "kill -9 $(sudo lsof -t -i:3000)"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #kill #port #ubuntu
ADD COMMENT
Topic
Name
8+6 =