how to find out which port an application is using ubuntu code example Example: see what is using a port ubuntu $ sudo lsof -i:22