Category Archives: netstat

netstat + lsof = my friend

linux “netstat -anpt | grep -i listen | grep 8888” will find out the process id is running on that port. “/usr/sbin/lsof -p ” find out what file and sockets it opens. “/usr/sbin/lsof -P -n -i TCP” will list all … Continue reading

Posted in lsof, netstat | Leave a comment