Sunday, January 07, 2007

First, open a terminal window and use su to switch to root. Then enter the command # netstat –tap > listening.services, followed by the command # less listening.services.

These commands will display a list of all services that are currently running with a State of LISTEN. Also listed are the PIDs of the services and the names of the programs that started the services.

In general, if you can’t identify a service that is listed, you probably don’t need it. If it is not obvious from the netstat output what a service is, use the ps, find, grep, or locate command to find more information about the program or its specific PID. Also check /etc/services for an unfamiliar service name or port number.

It seems that you can kill a PID by just saying "kill" followed by the PID number.

0 Comments:

Post a Comment

<< Home