find out if a port is open ubuntu code example Example: see what is using a port ubuntu $ sudo lsof -i:22