check if port is open ubutntu command code example Example: see what is using a port ubuntu $ sudo lsof -i:22