Re: Faster ls when there are thousands of files in a directory
From:
Bob Proulx
Subject:
Re: Faster ls when there are thousands of files in a directory
Date:
Sat, 25 Jun 2011 08:14:44 -0600
User-agent:
Mutt/1.5.21 (2010-09-15)
Jim Meyering wrote:
> Bob Proulx wrote:
> > Jim Meyering wrote:
> >> For minimal overhead ls, use only the -1U options.
> >> I.e., type exactly this:
> >>
> >> env ls -1U
> >
> > What benefit is provided by invoking through 'env' in that example
> > without any environment modifications specified? I am sure I am
> > missing something and would enjoy the education.
>
> Using "env" like that is the portable and shell-agnostic way to ensure
> you run the program rather than an alias or shell function named "ls".
Ah... Yes. Good call.
Thanks!
Bob