Strange Ports Being Used

Bill Campbell linux-sxs
Tue Mar 13 08:47:13 PDT 2007


On Tue, Mar 13, 2007, Steve Jardine wrote:
>All,

>Anyone got a good idea as to what I can use to determine what program is
>bound to which port on my system?

lsof -n -i :port
	OR for DNS resolution
lsof -i :port

Then you can see what a particular processid is using:

lsof -p pid

This can be very useful to determine what system a zombie IRC is
using (probably something in undernet :-).

Bill
--
INTERNET:  bill at Celestial.COM   Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/   PO Box 820; 6641 E. Mercer Way
FAX:           (206) 232-9186   Mercer Island, WA 98040-0820; (206) 236-1676
http://www.celestial.com/

You need only reflect that one of the best ways to get yourself a
reputation as a dangerous citizen these days is to go about repeating
the very phrases which our founding fathers used in the struggle for
independence.
        -- Charles A. Beard



More information about the Linux-users mailing list