check process using port code example
Example 1: list process using port
sudo lsof -n -i :80 | grep LISTEN
Example 2: find out process using port windows
netstat -ano | findstr 8080
Example 3: ubuntu check process on port
sudo lsof -i:22
Example 4: process runninng on particular port
sudo ss -lptn 'sport = :80'
Example 5: See process on port
netstat -ano | findstr 8080Code language: Bash (bash)