From owner-freebsd-questions Tue Mar 23 2:49: 1 1999 Delivered-To: freebsd-questions@freebsd.org Received: from chain.freebsd.os.org.za (chain.freebsd.os.org.za [196.7.74.174]) by hub.freebsd.org (Postfix) with ESMTP id 5CD9814E47 for ; Tue, 23 Mar 1999 02:48:57 -0800 (PST) (envelope-from khetan@chain.freebsd.os.org.za) X-Disclaimer: Contents of this e-mail are the writer's opinion X-Disclaimer2: and may not be quoted, re-produced or forwarded X-Disclaimer3: (in part or whole) without the author's permission. Received: from localhost (khetan@localhost) by chain.freebsd.os.org.za (8.9.3+3.2W/8.9.3/smtpfeed 0.95) with ESMTP id MAA47608; Tue, 23 Mar 1999 12:48:34 +0200 (SAST) (envelope-from khetan@chain.freebsd.os.org.za) Date: Tue, 23 Mar 1999 12:48:33 +0200 (SAST) From: Khetan Gajjar Reply-To: Khetan Gajjar To: Eric Jacoboni Cc: freebsd-questions@FreeBSD.ORG Subject: Re: BSD equivalent of Linux 'fuser' command In-Reply-To: <87ogllhwnt.fsf@titine.fr.eu.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Around Today, "Eric Jacoboni" wrote : EJ> Is there a BSD equivalent of the Linux 'fuser' command ? Yup - fstat(1) Fstat identifies open files. A file is considered open by a process if it was explicitly opened, is the working directory, root directory, ac- tive executable text, or kernel trace file for that process. If no op- tions are specified, fstat reports on all open files in the system. It also does sockets. EJ> I've read some lines about lsof and try it under Linux (i've not yet EJ> installed it from the FBSD ports) but nothing happens with this command EJ> under my linux box, so i can't compare :( lsof is platform independent, but fstat comes with FreeBSD. --- Khetan Gajjar (!kg1779) * khetan@os.org.za http://www.os.org.za/~khetan * Talk/Finger khetan@chain.freebsd.os.org.za FreeBSD enthusiast * http://www2.za.freebsd.org/ Security-wise, NT is a OS with a "kick me" sign taped to it To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message