find /etc -size -1G return only empty files
Patrick O'Callaghan
pocallaghan at gmail.com
Thu Mar 25 17:44:08 UTC 2010
On Thu, 2010-03-25 at 10:21 -0700, Rick Stevens wrote:
> # find /etc -size 1G -exec ls -lh \{\} \;
>
> run as root finds files <1G as confirmed by the "ls" bit of the
> command.
The OP's test (and mine) was with "-size -1G". Your test uses "-size 1G"
but (incorrectly) gives the result expected for "-size -1G".
This really should be reported. It would be appropriate for the OP to do
so as he found it.
poc
More information about the users
mailing list