# 15. Find out which program opens tcp port. For e.g. find out what opens port 3000:
lsof -i:3000
Display all PID and name of the program to which each tcp port belongs:
netstat -tlnp
ps aux | grep 3000
ps -eo pid,user,args,pid --sort user
Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our weekly email newsletter to make sure you don't miss a single tip/tricks.
# 15. Find out which program opens tcp port. For e.g. find out what opens port 3000:
lsof -i:3000
Display all PID and name of the program to which each tcp port belongs:
netstat -tlnp
ps aux | grep 3000
ps -eo pid,user,args,pid --sort user
©2005-2008 nixCraft. All rights reserved - Disclaimer - Privacy policy - Powered by Open source software.
About Us