NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Free space inconsistency with df / du



> df -h shows me that I have 3 GB used, while du -sh / shows me it's 2
> GB:

fstat shows open files.

Try something like:

fstat | grep ' -[-rwx]' | sort -nr -k 8 | head

On my system it shows the largest files (inode numbers) currently open.

No mapping to filenames. But "find / -inum NUMBER" can help find it is 
in directory still.


  Jeremy C. Reed


Home | Main Index | Thread Index | Old Index