ubuntu see what is on what ports are in use code example Example: see what is using a port ubuntu $ sudo lsof -i:22