Re: ls -la sort order
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
> LC_COLLATE=C
> 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. 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. This is exactly what
locale settings are for.
Don't forget to export it.
Reply to: