You need to use netstat.  This tells you of the status of the ports and
stuff.  I think netstat -a is the one you are looking for, but just man
netstat.  Also, you don know to look at the /etc/services file for a
general layout?


On Tue, 11 May 1999, Nayan Jain wrote:

> Hi all,
> 
> How can you check which service is running on which port of a LINUX
> Server. 
> 
> In Unixware i used to telnet to a particular port to find out what service
> it is running.
> 
> eg. telnet <server ip address> <port no>
> 
> UNIX PROMPT>telnet 111.111.11.11 21 
> 
> It will start as an ftp service and i can interpret that ftp service is
> running on this port.
> 
> How can this be done for linux. As i m not able to do the same.
> 
> TIA,
> 
> Please dont flame me if u feel this is odd question here.
> Nayan Jain 
> 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> 
> "Everyone is kneaded out of the same dough 
>       but not baked in the same oven."
>                                       -Yiddish Proverb
> 
> 

Reply via email to