Question : ubuntu check process on port
Answered by : alberto-peripolli
sudo lsof -i:22
Source : | Last Update : Tue, 26 May 20
Question : find out which procses is using port linux
Answered by : sdev
sudo lsof -i:<port_number>
Source : | Last Update : Thu, 06 Aug 20
Question : process runninng on particular port
Answered by : sahil-rally
sudo ss -lptn 'sport = :80'
Source : | Last Update : Tue, 23 Jun 20
Question : linux query port use by pid
Answered by : witty-worm-m89kw5adzzo2
$ 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))
Source : https://unix.stackexchange.com/questions/106561/finding-the-pid-of-the-process-using-a-specific-port | Last Update : Sat, 20 Jun 20