Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

process id running on port

Status
Not open for further replies.

cheths

Programmer
May 20, 2002
1
US
I need to find out process id and owner of process, running on a particular port. Is there any unix command to do this?
 
lsof|grep TCP
will give you PIDs,process names and ports thay are using
If you dont have lsof you could work back from a
#netstat -a|grep LIS
and #ptree $(ps -ef|awk '/inetd/&&!/awk/{print $2}')
say to see waht inetd is doing (v8 & ksh)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top