From owner-freebsd-questions Mon Mar 22 17:44:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from granite.sentex.net (granite.sentex.ca [199.212.134.1]) by hub.freebsd.org (Postfix) with ESMTP id 2A45115303 for ; Mon, 22 Mar 1999 17:44:33 -0800 (PST) (envelope-from mike@sentex.net) Received: from ospf-wat.sentex.net (ospf-wat.sentex.net [209.167.248.81]) by granite.sentex.net (8.8.8/8.6.9) with SMTP id UAA23711; Mon, 22 Mar 1999 20:44:07 -0500 (EST) From: mike@sentex.net (Mike Tancsa) To: jaco@titine.fr.eu.org (Eric Jacoboni) Cc: questions@freebsd.org Subject: Re: BSD equivalent of Linux 'fuser' command Date: Tue, 23 Mar 1999 01:53:24 GMT Message-ID: <36f6f32f.3359911266@mail.sentex.net> References: In-Reply-To: X-Mailer: Forte Agent .99e/32.227 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 22 Mar 1999 19:35:49 -0500, in sentex.lists.freebsd.questions you wrote: >Hi, > >Is there a BSD equivalent of the Linux 'fuser' command ? > >I've read some lines about lsof and try it under Linux (i've not yet >installed it from the FBSD ports) but nothing happens with this command >under my linux box, so i can't compare :( lsof is the one you should try... It will should you what files a user/process has open e.g. blackhole# lsof -i | head COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME syslogd 122 root 4u inet 0xf88e3f60 0t0 UDP *:syslog inetd 162 root 4u inet 0xf89a3f00 0t0 TCP *:ftp (LISTEN) inetd 162 root 5u inet 0xf89a4f00 0t0 TCP *:telnet (LISTEN) inetd 162 root 6u inet 0xf89a4de0 0t0 TCP *:login (LISTEN) sendmail 169 root 3u inet 0xf89a4cc0 0t0 TCP *:smtp (LISTEN) sshd2 237 root 3u inet 0xf89a4a80 0t0 TCP *:ssh (LISTEN) gated 4519 root 8u inet 0xf88e3f00 0t0 UDP *:* gated 4519 root 10u inet 0xf8ca8f60 0t0 ICMP *:* Mike Tancsa (mdtancsa@sentex.net) Sentex Communications Corp, Waterloo, Ontario, Canada To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message