Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kill processes on port 80

sudo lsof -t -i tcp:80 -s tcp:listen | sudo xargs kill
Comment

kill all process at port

lsof -ti tcp:2525 | xargs kill
Comment

kill process on port

# To list any process listening to the port 8080:
lsof -i:8080

# To kill any process listening to the port 8080:
kill $(lsof -t -i:8080)

# or more violently:
kill -9 $(lsof -t -i:8080)
# (-9 corresponds to the SIGKILL - terminate immediately/hard kill signal: see List of Kill Signals and What is the purpose of the -9 option in the kill command?. If no signal is specified to kill, the TERM signal a.k.a. -15 or soft kill is sent, which sometimes isn't enough to kill a process.).
Comment

kill process on port

#list process running on specified port (here 80, change to your port)
sudo lsof -i:80

#kill process on specified port (here 80, change to your port)
sudo kill $(sudo lsof -t -i:80)
Comment

kill a process at a port

fuser -k 8080/tcp
Comment

kill process on port

lsof -i:3000           // Change 3000 to whatever your port is!
sudo kill 9 <PID>      // Change <PID> to the Pid number the above command returns 
Comment

kill process by port

C:> netstat -ano | findstr :YourPortNumber
Comment

PREVIOUS NEXT
Code Example
Shell :: apache .htaccess Option ubuntu 
Shell :: run tmux on startup 
Shell :: how to install webpack 
Shell :: how to find host name in linux 
Shell :: uninstall package from ubuntu 
Shell :: # /bin/bash meaning 
Shell :: shell ls a zip file 
Shell :: tensorflow python 3.9 
Shell :: linux ls order by size 
Shell :: install pyqt5 designer 
Shell :: find a file linux 
Shell :: 7z e into folder linux 
Shell :: update local repository from github 
Shell :: npm install line awesome 
Shell :: error: ‘thread’ is not a member of std 
Shell :: improve ubuntu 16.04 performance 
Shell :: install to current directory pip 
Shell :: eclipse in ubuntu snap 
Shell :: how to install requirements.txt 
Shell :: print unique lines 
Shell :: Retrieve Linux command line history by date 
Shell :: f.lux for ubuntu 18.04 
Shell :: how to install mypy 
Shell :: how to install modules from requirement.txt 
Shell :: how to install npm 
Shell :: add git submodule 
Shell :: ubuntu rename user login 
Shell :: wslinux import 
Shell :: how to stop tomcat from cmd 
Shell :: install virtualbox ubuntu 20 wsl command line 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =