how to know which port is assign what in ubuntu code example Example: see what is using a port ubuntu $ sudo lsof -i:22