how to find port in used on ubuntu sytem code example Example: see what is using a port ubuntu $ sudo lsof -i:22