About MOTD

# 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


« « Previous | Permlink | Add to:                 Source: nixCraft | Next » »

©2005-2008 nixCraft. All rights reserved - Disclaimer - Privacy policy - Powered by Open source software.