linux how to list processes by port code example
Example 1: ubuntu check process on port
sudo lsof -i:22
Example 2: process runninng on particular port
sudo ss -lptn 'sport = :80'
sudo lsof -i:22
sudo ss -lptn 'sport = :80'