linux check port used by process code example
Example 1: linux check what process is using port
$ netstat -ltnp | grep -w ':80'
Example 2: process runninng on particular port
sudo ss -lptn 'sport = :80'
Example 3: linux which process is using a port
$ sudo netstat -ltnp | grep ':80'
Example 4: check what ports are open linux
## if you use linux
sudo ss -tulw