Need to know the default port for a service? by riahmatic
-
02:33:08 am on February 4, 2008 | # |
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 - runcat /etc/services | grep 22. List all:cat /etc/services. Just found this out, thought I’d share with fellow noobs.