Horje
kill all processes holding a port Code Example
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)
kill all processes holding a port
sudo kill -9 $(sudo lsof -t -i:9001)
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)




Shell

Related
homebrew Unknown command: cask Code Example homebrew Unknown command: cask Code Example
laravel create model and migration Code Example laravel create model and migration Code Example
nohup & 2 &1 Code Example nohup & 2 &1 Code Example
wsl convert to wsl2 Code Example wsl convert to wsl2 Code Example
git log oneline with date Code Example git log oneline with date Code Example

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