ubuntu get port in use code example
Example 1: ubuntu open port
sudo ufw allow 1191/tcp
Example 2: linux see used ports
netstat -tulpn
Example 3: see what is using a port ubuntu
$ sudo lsof -i:22
Example 4: check what ports are open linux
## if you use linux
sudo ss -tulw