Re: Old style 'ls'

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

 



On Tue, Dec 23, 2003 at 05:31:11PM -0800, Pete Nesbitt wrote:
> A few versions ago the ls command changed the way it displays results. It 
> moved from the traditional ".,#,A,a" format to one that more resembles the 
> dos sort order. I notice listings at redhat.com still use the old sort!
> 
> Does anyone know how to fix 'ls' so it uses the old sort?

I think you're refering to the locale-related sort order.  You can get the
old behavior back by switching from the English to the "C" locale.  Try

  alias ls="LC_ALL=C ls"

This will switch the order back to ASCII order, which is close to what you
describe, although '#' does come before '.'. 

--
David Lupo
david.lupo@xxxxxxxxxxxx


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux