[CentOS] ls -l output

Thu Sep 3 22:15:12 UTC 2009
Robert Nichols <rnicholsNOSPAM at comcast.net>

Jacob Bresciani wrote:
> OK, this should be an easy fix but I can't find it, and it's strictly  
> a cosmetic's issue.
> 
> on our older Gentoo systems if you do an ls -a it orders the results  
> with all the . files ordered alphabetically then all the non-hidden  
> files alphabetically. it also sorts with capitals first.
> 
> on the new Centos 5.3 systems ls -a returns all the files sorted  
> alphabetically with capital's and smalls being equal and the . at the  
> start of a hidden file appears to be ignored.

In your shell (assuming bash, not csh):

      export LC_COLLATE=C

To set that automatically when you log in, add that line to your
~/.bash_profile .

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.