1
vote
Accepted
Display the results in an alphabetical order, independently of their case
ls is required by POSIX to sort the file names in its output according to the collating sequence in the current locale.
If your system has no locale where the sort order ignores case at least in the ...
1
vote
Why is ls sorting Chinese filenames by length?
I found out where macOS stores locale files, in /usr/share/locale, and to my surprise this is how the zh_CN.UTF-8 locale is defined:
% ls -la /usr/share/locale/zh_CN.UTF-8
total 8
drwxr-xr-x 8 root ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sort × 1003text-processing × 173
awk × 134
linux × 115
bash × 110
shell-script × 85
uniq × 74
ls × 67
shell × 62
files × 62
grep × 61
find × 52
sed × 46
command-line × 43
locale × 35
filenames × 33
date × 33
scripting × 22
csv × 22
numeric-data × 20
join × 19
pipe × 18
cut × 17
macos × 16
unicode × 16