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