Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 1999 01:53:24 GMT
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
Message-ID:  <36f6f32f.3359911266@mail.sentex.net>
In-Reply-To: <MAIL87ogllhwnt.fsf@titine.fr.eu.org>
References:  <MAIL87ogllhwnt.fsf@titine.fr.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36f6f32f.3359911266>