Re: ls -l output

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



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.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux