Hidden directories does not appear first
Hidden files does not appear first
There is no problem on OS 13.2
There is no problem with dolphin ( sorting mode = alphabetical sorting, case sensitive )
There is no problem on OS 13.2 ( natural sorting of items = unticked )
And why do you call it a problem?
You told ls to show directories first (and it does), not that it should show hidden files/directories first…
It seems to apply some sort of natural sorting (e.g. .cache is treated equally to cache).
If that didn’t happen in 13.2 it may be a change in ls, or it may be related to the locale.
Btw, I just checked, and it does exactly behave like that here on 13.2:
wolfi@amiga:~> lsb-release -r
Release: 13.2
wolfi@amiga:~> ls -a
.
..
abgabe.dsk
.AbiSuite
.abuse
.acetoneiso
ActionReplay3Handbuch.zip
.addressbook
.adobe
AGReader
...
So ls doesn’t seem to have changed in this regard…
There is no problem with dolphin ( sorting mode = alphabetical sorting, case sensitive )
There is no problem on OS 13.2 ( natural sorting of items = unticked )
dolphin’s behavior is completely unrelated to ls.
And with “alphabetic sorting” (“natural sorting” turned off), .cache is indeed different than cache, and ‘.’ comes before any alphabetical character (A-Z/a-z).
The point of “natural sorting” is to ignore this technical difference though.
Yes, that’s how the “C” (POSIX) locale is defined. It strictly sorts by the ASCII code. So ‘B’ comes after ‘A’, but before ‘a’.
What to change or set and where?
You can change the system locale in /etc/sysconfig/language or /etc/locale.conf.
Your desktop should provide a possibility to change it for the user.
In KDE/Plasma5 that’s “Configure Desktop”->“Regional Settings”->“Formats”.
Again, you only need to change LC_COLLATE (“Collation and Sorting” in KDE’s settings) for this.
I cannot tell you which locale will behave as you want it though, you’ll have to find out yourself.
Hm? I think you mean case in-sensitive here. Your previous output was case sensitive…
As I wrote, I cannot tell you which locale would do that.
You need to try and find one yourself, or create one but I have no idea how to do that either.
I see no options in ls regarding this.
Another possibility would probably be to pipe ls’s output through sort though, see “man sort”.
But you’d need to change ls’s output format then.
PS: actually it should even work with the standard ls output if you use the --key option appropriately.
Although the problem with sort is that you won’t be able to keep the directories separate… :\