find port running ubuntu code example
Example 1: ubuntu check process on port
sudo lsof -i:22
Example 2: how to stop running port in ubuntu
sudo kill -9 `sudo lsof -t -i:{PORT_NUMBER}`
sudo lsof -i:22
sudo kill -9 `sudo lsof -t -i:{PORT_NUMBER}`