find /etc -size -1G return only empty files
Rick Stevens
ricks at nerd.com
Thu Mar 25 17:21:48 UTC 2010
On 03/25/2010 10:13 AM, Patrick O'Callaghan wrote:
> On Thu, 2010-03-25 at 13:04 -0400, Kevin J. Cummings wrote:
>>> Note that this clarification is not present in the man page find(1).
>> So
>>> it's either a bug in find or a bug in the documentation.
>>
>> When I ran the command as "-size 1G", it returned all the files less
>> than 1GB in size (I'm not sure if /etc *has* any files greater than
>> 1GB!) So, I agree, its either a bug in the documentation or in find.
>> Bugzilla it! Let's hear from the developers.
>
> Are you sure? In my case it returned only the zero-length files, same as
> what the OP reported. This is on F12, just in case.
Interesting. On both F11 and F12 here:
# find /etc -size 1G -exec ls -lh \{\} \;
run as root finds files <1G as confirmed by the "ls" bit of the command.
On F11:
[root at prophead ~]# find --version
find (GNU findutils) 4.4.0
On F12:
[root at bigdog ~]# find --version
find (GNU findutils) 4.4.2
Hope that helps.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- God is real...........unless declared integer or long -
----------------------------------------------------------------------
More information about the users
mailing list