all PID by port ubuntu 18 code example Example: find process id of port ubuntu $ sudo netstat -ltnp | grep -w ':80'