Re: ls -la sort order
- Date: Wed, 3 Oct 2018 12:31:01 -0400
- From: Lee <ler762@xxxxxxxxx>
- Subject: Re: ls -la sort order
On 10/3/18, Greg Wooledge <wooledg@xxxxxxxxxxx> wrote:
> On Wed, Oct 03, 2018 at 11:07:04AM -0400, Lee wrote:
>> I can fix the problem by aliasing ls to 'LC_COLLATE=C ls' but that
>> seems klunky and would only fix ls (and not break anything else). How
>> bad of an idea would it be to set
>> in my .bashrc or is there some other setting to get dot files listed
>> first, then uppercase, then lowercase?
> This will affect ls, and also the expansion of globs.
interesting... I get different results for 'ls [D-M]*' if LC_COLLATE=C
> It's totally fine,
> assuming this is what you want, and assuming you don't have a lot of
> files with non-ASCII characters in their names.
I'm guessing no since I don't know how to create a filename with a
non-ascii character :)
> This is exactly what locale settings are for.
cool.. Thank you