Try ...
fstat filename
Mike
On Tue, 13 Aug 1996, Giuseppe Vitillaro wrote:
>
> I found particulary useful im my experience the AIX
> "fuser" command.
>
> This little AIX command let to get the PIDs of the
> processes that are keeping open a file.
>
> If you use it for example on a syslog file like:
>
> fuser daemon.log
> daemon.log: 3461
>
> you will get the PID of the syslogd daemon.
>
> Two related questions:
>
> (1) does an equivalent command exist under FreeBSD?
>
> (2) in the case the answer to the first question would be "NO",
> have the FreeBSD the primitives to build a tools like fuser?
>
> Thank in advance, Peppe.
>