Wednesday, July 1, 2009

Processes listening on a particular port

Inorder to find out the process listening on a particula port you can use the following command

lsof -i TCP:portnumber

eg: lsof -i TCP:80

httpd 31969 linux 3u IPv6 8152068 TCP *:http (LISTEN)
httpd 31971 linux 3u IPv6 8152068 TCP *:http (LISTEN)
httpd 31972 linux 3u IPv6 8152068 TCP *:http (LISTEN)

No comments:

Post a Comment