On Mon May 24 2004 2:06 pm, Jerome Lyles wrote:
How do I tell which port a given service uses. Thanks, Jerome
Try running: # netstat -l -p or # netstat -l -p -n Hope this helps -Nick -- <<< The matrix has you. >>> /`-_ Nicholas R. LeRoy The Condor Project { }/ http://www.cs.wisc.edu/~nleroy http://www.cs.wisc.edu/condor \ / nleroy@cs.wisc.edu The University of Wisconsin |_*_| 608-265-5761 Department of Computer Sciences
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. Jerry On Mon, 2004-05-24 at 21:06, Jerome Lyles wrote:
How do I tell which port a given service uses. Thanks, Jerome
* Jerome R. Westrick
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.
participants (6)
-
James Knott
-
Jerome Lyles
-
Jerome R. Westrick
-
Ken Schneider
-
Mads Martin Joergensen
-
Nick LeRoy