Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] Server ports
  • From: Mads Martin Joergensen <mmj@xxxxxx>
  • Date: Tue, 25 May 2004 07:02:57 +0200
  • Message-id: <20040525050257.GE56661@xxxxxxxxxxxxxx>
* Jerome R. Westrick <jerry@xxxxxxxxxxxx> [May 24. 2004 23:15]:
> I'm not sure if this was your question,
> but....
>
> grep ftp /etc/services
> will give show you which port ftp uses...
> /etc/services is a list of "known" ports.

'getent' can be used for this as well.

$ getent services ftp
ftp 21/tcp
$ getent services imaps
imaps 993/tcp

--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.

< Previous Next >