how to list file and sort by filename using ls

Steven W. Orr steveo at syslang.net
Tue Apr 25 18:30:17 EDT 2006


On Monday, Apr 24th 2006 at 16:33 -0400, quoth Zhao Peng:

=>output of echo $LANG:
=>
=>   en_US.UTF-8
=>
=>"LANG=C ls -ul" does do what I expected to do.
=>
=>What does "C" mean? character?
=>
=>Thank you,  Kevin.
=>
=>Zhao
=>
=>> 1:  can you show us the output of the following:
=>> 
=>>         echo $LANG
=>> 
=>> 2:  Does this do what you want?:
=>> 
=>>         LANG=C ls -ul
=>> 
=>> 
=>> I'll bet that the output of "ls" is sorted, but just not in the order
=>> that you expected.
=>> 
=>> Regards,

I don't know what distro you're using but under redhat/fedora flavored 
systems, you can change the LANG stuff system wide in /etc/sysconfig/i18n

My copy looks like this:

539 > cat /etc/sysconfig/i18n 
#LANG="en_US.UTF-8"
LANG="C"
SYSFONT="latarcyrheb-sun16"
SUPPORTED="en_US.UTF-8:en_US:en"
LC_COLLATE=C


-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net



More information about the gnhlug-discuss mailing list