ls --group-directories-last ? (List directories AFTER files)

Solution 1:

The beauty of the shell is that you can compose different units of logic using pipes:

ls -1 --group-directories-first | tac

Where tac reverses what it receives from stdin (opposite of cat). It even works with colored output which was crucial for me:

ls -1 --color=always --group-directories-first | tac