ubuntu netstat look for ports code example
Example: linux how to see ports in use
sudo netstat -tulpn | grep LISTEN
sudo lsof -i:22 # see a specific port such as 22
sudo netstat -tulpn | grep LISTEN
sudo lsof -i:22 # see a specific port such as 22