how to know which service is running on which port cent os code example Example: find out which procses is using port linux sudo lsof -i:<port_number>