Shell/Bash: how to stop running port in ubuntu Example

By

Shell/Bash Example: This is the "how to stop running port in ubuntu" Example. compiled from many sources on the internet by SimpleTutorials.org

kill port ubuntu

sudo kill -9 `sudo lsof -t -i:9001`

kill port ubuntu

sudo kill -9 `sudo lsof -t -i:3002`

how to stop running port in ubuntu

sudo kill -9 `sudo lsof -t -i:{PORT_NUMBER}`

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)"

how to kill port in ubuntu

sudo lsof -t -i:9001

ubuntu kill running port

Kill specific port


* Summary: This "how to stop running port in ubuntu" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others