Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google site




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 03-21-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 983
The lsof(8) command can be run as follows:

Code:

# lsof -i
COMMAND    PID  USER   FD   TYPE DEVICE SIZE NODE NAME
avahi-dae 5033 avahi   14u  IPv4  15387       UDP *:mdns 
avahi-dae 5033 avahi   15u  IPv4  15388       UDP *:33378 
cupsd     5081  root    2u  IPv4  15468       TCP localhost:ipp (LISTEN)
hddtemp   5136  root    0u  IPv4  15530       TCP localhost:7634 (LISTEN)
dhclient  6014  root    5w  IPv4  20112       UDP *:bootpc 
thunderbi 9118  tony   32u  IPv4  88273       TCP laptop.local:47532->ey-in-f111.google.com:imaps (ESTABLISHED)
thunderbi 9118  tony   33u  IPv4  88277       TCP laptop.local:54941->moz.com01.nslb.sj.mozilla.com:www (ESTABLISHED)
thunderbi 9118  tony   34u  IPv4  88282       TCP laptop.local:58086->2.stage.mozillamessaging.com:www (ESTABLISHED)
thunderbi 9118  tony   35u  IPv4  88294       TCP laptop.local:38661->1.stage.mozillamessaging.com:www (ESTABLISHED)
thunderbi 9118  tony   36u  IPv4  88295       TCP laptop.local:38662->1.stage.mozillamessaging.com:www (ESTABLISHED)
#

And as you can see list what process has opened what port. See also http://www.opensource.apple.com/darw...f/00QUICKSTART.