linux get process on port code example
Example 1: linux check what process is using port
$ netstat -ltnp | grep -w ':80'
Example 2: ubuntu check process on port
sudo lsof -i:22
Example 3: linux which process is using a port
$ sudo netstat -ltnp | grep ':80'
Example 4: See process on port
netstat -ano | findstr 8080Code language: Bash (bash)