ls command sort options
Keith Morse
kgmorse
Mon May 17 11:37:30 PDT 2004
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 .
I haven't changed mine, opting to go along with the "standard".
[kgmorse at lynx kgmorse]$ cat /etc/sysconfig/i18n
LANG="en_US"
SUPPORTED="en_US:en"
SYSFONT="lat0-sun16"
SYSFONTACM="iso01"
See "man bash" for more gory details
More information about the Linux-users
mailing list