From owner-freebsd-questions Tue Jan 15 4: 2:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 94FA437B41C for ; Tue, 15 Jan 2002 04:02:26 -0800 (PST) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Tue, 15 Jan 2002 12:02:08 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 16QSFf-0003iT-00; Tue, 15 Jan 2002 11:59:39 +0000 Date: Tue, 15 Jan 2002 11:59:39 +0000 (GMT) From: Jan Grant X-X-Sender: To: "Brian T.Schellenberger" Cc: Christopher Schulte , Mike Meyer , questions Subject: Re: lsof vs. fstat In-Reply-To: <0a1123649100f12FE6@Mail6.nc.rr.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 15 Jan 2002, Brian T.Schellenberger wrote: > On Monday 14 January 2002 11:21 am, Christopher Schulte wrote: > > > > > > Use lsof ( /usr/ports/sysutils/lsof ) and HUP only the listening sshd > > process. > > Does lsof have some advantage over fstat? I posted a while ago mentioning > lsof, which had been recomemnded to me by regular FreeBSD users, and somebody > here pointed out that fstat is in the base system. It seems to do what I > used lsof for, so I just aliased lsof to fstat when I restaged my machine > recently. > > Am I missing out on something or is fstat just not well-known? lsof has a whole slew of options and combines functionality of fstat, netstat and sockstat. It's generally more convenient if you're used to it. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk Generalisation is never appropriate. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message