Answers for "ubuntu kill port"

34

kill port ubuntu

sudo kill -9 `sudo lsof -t -i:9001`
Posted by: Guest on May-03-2020
5

stop port ubintu

sudo kill -9 `sudo lsof -t -i:9001`
Posted by: Guest on November-15-2020
5

kill port linux

kill -9 $(lsof -t -i:8080)
Posted by: Guest on December-29-2020
7

kill port ubuntu

sudo kill -9 `sudo lsof -t -i:3002`
Posted by: Guest on May-16-2020
15

ubuntu stop process on port

sudo kill -9 `sudo lsof -t -i:{PORT_NUMBER}`
Posted by: Guest on March-30-2020
0

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)
Posted by: Guest on November-08-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language