Shell/Bash: linux check what process is using port Example

By

Shell/Bash Example: This is the "linux check what process is using port" Example. compiled from many sources on the internet by SimpleTutorials.org

linux query port use by pid

$ sudo netstat -nlp | grep :80
tcp  0  0  0.0.0.0:80  0.0.0.0:*  LISTEN  125004/nginx

linux check what process is using port

$ netstat -ltnp | grep -w ':80' 

ubuntu check process on port

sudo lsof -i:22

find out which procses is using port linux

sudo lsof -i:

process runninng on particular port

sudo ss -lptn 'sport = :80'

linux which process is using a port

$ sudo netstat -ltnp | grep ':80' 


* Summary: This "linux check what process is using port" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others