6 Oct 2011
How to find what service uses port in unix/linux
Author: Edgars | Filed under: DailyStuff, serversandstuffIf you want to find out which program (daemon, app, etc) is using the port in unix environmnet (at least in linux), then netstat come in handy.
run this command in prompt
netstat -tlnp | grep :25
and it gives out result like
[~]# netstat -tlnp | grep :25 tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2739/??????
where the ?????? part is the answer you are looking for


Leave a Reply