Horje
ubuntu kill port Code Example
kill port ubuntu
sudo kill -9 `sudo lsof -t -i:9001`
kill port linux
kill -9 $(lsof -t -i:8080)
stop port ubintu
sudo kill -9 `sudo lsof -t -i:9001`
kill port ubuntu
sudo kill -9 `sudo lsof -t -i:3002`
ubuntu stop process on port
sudo kill -9 `sudo lsof -t -i:{PORT_NUMBER}`
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)




Shell

Related
docker compose unless stopped Code Example docker compose unless stopped Code Example
# /bin/bash for launching ec2 Code Example # /bin/bash for launching ec2 Code Example
how to open chrome on linux mac Code Example how to open chrome on linux mac Code Example
Git Add a new branch and switch to that branch Code Example Git Add a new branch and switch to that branch Code Example
command not found Code Example command not found Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12