[NTLUG:Discuss] Undoing Windows Sytle ls foo

MadHat madhat at unspecific.com
Tue Aug 27 09:50:08 CDT 2002


On Mon, 2002-08-26 at 13:27, Kenneth Loafman wrote:
> Just upgraded from RH 6.2 to 7.3.  All is well except I can't seem to 
> find which switches were installed that cause the oddball directory 
> listing.  I want (need) to have the old style UNIX directory listings 
> with the dot-foo stuff first, alphabetized with case-sensitivity, etc. 
>  This new listing looks too much like the crap Windows users have to 
> contend with.

Its not a library or a compile problem... it is a feature.  Red Hat is
now setting LANG variables in the /etc/profile.d/lang.sh and
/etc/profile.d/lang.csh scripts to support foreign languages.  

By default for english, it is setting LANG to en_US.iso885915, if you
set LANG to just en, it goes back to 'normal' (yeh!!)

The value is actually set in /etc/sysconfig/i18n for the whole system or
you can also create a local file ~/.i18n and put LANG=en in it to
override the system defaults.

you can also use 
$ export LANG=en
for bash, or
$ setenv LANG en
for csh to change it and test.   If you just want to see what it is set
to, do an 
$ echo $LANG

Enjoy

-- 
MadHat at Unspecific.com
"Anyone who understands Linux/Unix, really understands the universe.
 Anyone who understands Windows, really understands Windows."
          - Richard Thieme, DefCon 10, 2002 




More information about the Discuss mailing list