command to list all the files and with the path also
Scott R. Godin
scott.g at mhg2.com
Wed Jul 5 17:59:53 UTC 2006
On Wed, 5 Jul 2006 12:29:19 -0400, Todd Zullinger wrote:
> Scott R. Godin wrote:
> > perhaps better would be
> > find -exec ls -ld {} \;
>
> Define better. :)
>
> Here's the time to run both commands on a new users home directory on
> my system (Core Duo T2300, 1GB RAM).
>
> find ~ | xargs ls -ld:
>
> real 0m0.019s
> user 0m0.008s
> sys 0m0.008s
>
> find ~ -exec ls -ld {}:
>
> real 0m1.007s
> user 0m0.072s
> sys 0m0.212s
>
> That's on a directory with only 121 entries found by find. Ouch.
>
> And, the find -exec command's output wasn't aligned consistently like
> it is when run from xargs (since with -exec you're executing an ls for
> each file or dir, AFAIK).
ouch indeed. you make a good point. Appreciate the clarification. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20060705/8293f54b/attachment-0002.bin
More information about the users
mailing list