[ILUG] finding files of at least a certain size
lbedford at lbedford.org
Fri Nov 1 12:42:09 GMT 2002
On Fri, 01 Nov 2002 12:39:37 +0000
John Allman <allmanj at houseofireland.com> blurted in message
3DC27609.9050206 at houseofireland.com:
> John Allman wrote:
> > I know there's gotta be a nice easy solution to this, but after a yonk
> > hurting my eyes and brain trawling through finds manpage i'm still at
> > a loss. i want to find files that are at least a certain size but am
> > having no luck so far. i'm guessing it's related to the -size option
> > but i have been unable to get it to work so far.
> > on a related note i'd also like to find directories whose contents sum
> > up to at least a certain size. i'm guessing this is not a one-liner.
> > any pointers would be much appreciated
> > thanks
> > John
> It occured to me that du could be used to solve my second query to some
> extent. but then i noticed this:
> [root at server /root]# du -hs /var
> 366M /var
> [root at server /root]# df -h /var
> Filesystem Size Used Avail Use% Mounted on
> /dev/sda6 2.4G 2.2G 52M 98% /var
> [root at server /root]#
> any ideas what the hell is going on? one of those things has got to be
> misreporting the space taken up by /var. anyone know how to fix this? or
> even identify which one is telling the truth (i'm inclined to believe du)
a file has been deleted, and is still being held open by a process.
Or, something has seeked 2G into a file, and started writing there. I
think that can also cause du to say the file is very small.
Liam Bedford | Greg: Can't you see you're all alcoholics?
--------------| Guv: Oi. We don't call them that. We call
them fanatical followers of the Ale
More information about the ILUG