Need to know the default port for a service, like mysql? Run cat /etc/services | grep mysql. Or maybe you know the port (say, 22) and want the service - run cat /etc/services | grep 22. List all: cat /etc/services. Just found this out, thought I’d share with fellow noobs.