Re: command to list all the files and with the path also

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. :)

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux