On Tue, 11 Nov 2008 11:55:30 +0100, Ruben de Groot <mail25@bzerk.org>
wrote:[color=blue]
> On Tue, Nov 11, 2008 at 10:22:42AM +0100, Willem Jan Withagen typed:[color=green]
>> Ruben de Groot wrote:[color=darkred]
>> >On Mon, Nov 10, 2008 at 11:21:11PM +0700, Eugene Grosbein typed:
>> >>On Mon, Nov 10, 2008 at 11:01:00AM -0500, Stephen Clark wrote:
>> >>
>> >>>Why would du show 630k used by /tmp while df show 161M used
>> >>>by /tmp?
>> >>>
>> >>>I have run fstat /tmp and can't find any files that are using
>> >>>the space that df is claiming as being used.
>> >>You need lsof +aL1 /tmp to see an answer.
>> >
>> >Please don't advise people to install third party apps (lsof) where
>> >base system tools (fstat) can do the job.[/color]
>>
>> Why not?[/color]
>
> Because it gives the impression the base system is incomplete, which it[/color]
is[color=blue]
> not,
> at least not in this situation. The wording "you need lsof" is plain
> wrong.
>[/color]
What about proposing both? As in use fstat from BASE or use lsof from
ports.
IMO it's good to know that there are several tools which solves your
problem.
As an example from real world. I love using "sockstat -4" on FreeBSD, but
I'm annoyed that it doesn't exist in OpenBSD and it doesn't exist in Debian
either.
So I'm used to use "netstat -tulpen" on Debian, but that won't work on
FreeBSD.
Anyway, since I know both ways, I find my way in both systems.
Summary: Good to know alternatives.