Quantcast
Channel: SuSE Linux – The Wiert Corner – irregular stream of stuff
Viewing all articles
Browse latest Browse all 217

*nix networking – lsof: How to tell what process has a specific port open on Linux (via: Server Fault)

$
0
0

I usually used netstat with some grep filter for this, but Brandon Titus showed at StackOverflow that the lsof command is much easier to use:

lsof command should be able to do this just fine. Just use this:

lsof -i :<port_number>

and all of the processes should come up.

It works on SUSE, Max OS X, CygWin and many other environments.

Two other commands I use often:

netstat -l -p

(shows the listening processes for tcp/udp ports)

rpcinfo -p

(shows the ports used by rpcbind)

–jeroen

via networking – How to tell what process has a specific port open on Linux? – Server Fault.


Filed under: *nix, Apple, Cygwin, Linux, Mac, OS X, OS X Leopard, OS X Lion, OS X Mountain Lion, OS X Snow Leopard, OS X Tiger, Power User, SuSE Linux

Viewing all articles
Browse latest Browse all 217

Trending Articles