ls command sort options
Bill Campbell
bill
Mon May 17 11:37:31 PDT 2004
On Wed, Sep 11, 2002 at 05:03:22PM -0700, Keith Morse wrote:
>On Wed, 11 Sep 2002, Brad De Vries wrote:
>
>> Does anyone know of a way to sort the files in the a
>> directory the way 'ls' used to sort them?
>
>Wow, this spawned quite a thread, eh? This very thing is/has been
>discussed at length on the Red Hat lists (redhat, valhalla, enigma).
>
>IN /etc/sysconfig/i18n you can set the variable "LC_COLLATE=C", which
>will change the behaviour system wide. Otherwise you could set this for
>each individual user in /home/$USER/.i18n .
The first time I ran into this problem was compiling gawk for Unixware at
least five years ago, and found it was the internationalization and LANG
environment variable. Setting LANG=C usually does the trick.
Bill
--
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Software LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
When you have an efficient government, you have a dictatorship.
-- Harry Truman
More information about the Linux-users
mailing list