show port on wich a process is running centos7 code example
Example 1: find out which procses is using port linux
sudo lsof -i:<port_number>
Example 2: find process id of port ubuntu
$ sudo netstat -ltnp | grep -w ':80'
sudo lsof -i:<port_number>
$ sudo netstat -ltnp | grep -w ':80'