Finding port numbers in Linux

Vadim gave me a cool tip for finding out the port numbers for things in linux. You can just look at the /etc/services file to see what port things are registered for.

> grep smtp /etc/services
smtp            25/tcp
mailsmtp            25/udp
mailsmtps           465/tcp
# SMTP over SSL (TLS)
Posted on 26 Nov 05 by Helen Emerson (last updated on 26 Nov 05).
Filed under Sysadmin