[CentOS] "find" switch to find files of a certain size?
William L. Maltby
CentOS4Bill at triad.rr.com
Mon Jan 14 16:24:54 UTC 2008
On Mon, 2008-01-14 at 16:59 +0100, Carl Boberg wrote:
> > On Mon, 2008-01-14 at 09:56 -0500, William L. Maltby wrote:
> > > On Mon, 2008-01-14 at 08:21 +0100, Andreas Kuntzagk wrote:
> > > > Am Sonntag, den 13.01.2008, 10:16 +0700 schrieb Fajar Priyanto:
> > > > > On Thursday 10 January 2008 23:21:55
> > techlists at comcast.net wrote:
> > > > > > Is there a switch in "find" (or some other command
> > besides find)
> > > > > >that'll let you find files larger than a specified size?
> > > > > ><snip>
> >
> > ><snip>
> Why not just use find to test for a file size since thats what he asked
> for in the first place :)
>
> find ./ -size +5M
>
> Finds all files recursively from the dir you are standing in with a size
> of 5 MB or more.
> -size n[cwbkMG] File uses n units of space
> Numeric arguments can be specified as
> +n for greater than n,
> -n for less than n,
> n for exactly n.
YES! I got caught up in, side-tracked by the "du" replies and didn't
carefully re-read the OP.
--
Bill
More information about the CentOS
mailing list