Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ubuntu kill port

You want to use backtick not regular tick:
sudo kill -9 `sudo lsof -t -i:9001`

If that doesn't work you could also use $() for command interpolation:
sudo kill -9 $(sudo lsof -t -i:9001)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ubuntu #kill #port
ADD COMMENT
Topic
Name
6+6 =