NEVERMIND: dang: how to display the process ass'd with an active port

From: Goodleaf, John M (jgoodlea_at_fhcrc.org)
Date: 02/18/04

  • Next message: Tweax Daemon: "Re: dang: how to display the process ass'd with an active port"
    To: "'freebsd-newbies@freebsd.org'" <freebsd-newbies@freebsd.org>
    Date: Tue, 17 Feb 2004 16:04:25 -0800
    
    

    I found the right google string to answer the question.

    If anyone's curious (and as ill-informed as I), the answer is lsof. So for
    me, lsof -i TCP:<port number> yielded the answer.

    Thanks anyway,
    John

    > -----Original Message-----
    > From: Goodleaf, John M
    > Sent: Tuesday, February 17, 2004 3:49 PM
    > To: 'freebsd-newbies@freebsd.org'
    > Subject: dang: how to display the process ass'd with an active port
    >
    > Under 4.9, how can I tell which process is associated with a port? I've
    > noticed a few oddball ports open on a machine, and I'd like to know which
    > process did that. Seems straightforward and yet I don't know the answer.
    >
    > Thanks,
    > John
    >

    _______________________________________________
    freebsd-newbies@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
    To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"


  • Next message: Tweax Daemon: "Re: dang: how to display the process ass'd with an active port"

    Relevant Pages

    • Re: Help, everything on the screen is blue!
      ... It was back to normal after I exit lsof. ... PID no. to kill if you knew which program to look for. ... Modify settings or unsubscribe at: ...
      (Ubuntu)
    • Re: Need to remove a ghost file, but cant because it doesnt exist
      ... hadn't thought of lsof or fuser yet. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
      (Debian-User)
    • Re: Memory semaphores?
      ... There's a port called lsof (in sysutils I think), ... prior to staring the httpd daemon? ... >To unsubscribe, ...
      (freebsd-questions)
    • Re: missing free space
      ... Output from lsof ... COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)
    • Re: checkrestart
      ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)