When using 'ls' i want to sort directories first and then all files AND sort directories/files with underscore first. Here is an example:
_folder2 folder2 _file2 file
I can sort directories first with
ls --group-directories-first --color --ignore=lost+found
but the underscore at the beginning is ignored. Sorting underscore at the beginning works with
ls -d _* [!_]*
but both doesn't work together. I have tried a lot of combinations of the two commands, nothings works as i want it to work. sometimes the color is lost (whats important for me) or i have the subfolders and files of the directores instead of the folder name.
Also LC_COLLATE=C and LC_LOCALE=C doesn't work.