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

linux check running processes on port command line code example

Example 1: ubuntu check process on port

sudo lsof -i:22

Example 2: linux query port use by pid

$ sudo ss -lptn 'sport = :80'
State   Local Address:Port  Peer Address:Port              
LISTEN  127.0.0.1:80        *:*                users:(("nginx",pid=125004,fd=12))
LISTEN  ::1:80              :::*               users:(("nginx",pid=125004,fd=11))

Example 3: check what ports are open linux

## if you use linux
sudo ss -tulw

Tags:

Shell Example

Related

jupyter environment code example filter out duplicates in list python code example How to access the time in python code example comment multiple lines visual studio windows code example python making an input into a integer code example propTYpes default props code example jest spy on object code example Find the sum of all the 4 digit numbers that can be formed with the digits 3, 4, 4 and 2. code example laravel clear datacache code example ubuntu 18.04 dns settings code example how to read appsettings.json in .net core console app code example Bresenhem line algorithm implement 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