I really don't like how Linux ls -al mixes files and directories. Is it possible to list directories, then files, with single command? dirAdirBdirCfileAfileBfileC
List directories, then files - with single command?
linux;shell script;ls
As usual, man ls is your friend. If you're running Linux with the GNU coreutils, the --group-directories-first does precisely what you ask for.