Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

list and kill process on port code example

Example 1: kill app at 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)

Example 2: kill process linux using port

sudo kill -9 $(sudo lsof -t -i:8000)

Tags:

Ruby Example

Related

iterate through enum java code example download nltk code example CREATE A linked list python code example modal button in css code example how to merge arrays in javascript code example see active ports linux code example how to use coroutines in android studio with kotlin code example connect to ftp server php code example jquery library in javascript file code example list of lists to dataframe python code example axios in browser or npm package code example php foreach function call from return array code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy