check process using port linux 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: process runninng on particular port
sudo ss -lptn 'sport = :80'
Example 4: bash list process on port
sudo lsof -i:3000
#Just change the port 3000
Example 5: linux which process is using a port
$ sudo netstat -ltnp | grep ':80'