Skip to main content

--group-directories-first option for "ls" command [Resolved]

I am using both Ubuntu 16.04 and OS X.

alias ll='ls -Flh --group-directories-first'

This is an alias in my bashrc, but somehow --group-directories-first option got illegal in OS X after I upgraded my bash with Homebrew. In my Ubuntu desktop, I still can use that option.

In what version of Bash, the option is unsupported? The Bash version in my OS X machine says GNU bash, Version 4.4.12(1)-release (x86_64-apple-darwin15.6.0)

I would like to use --group-directories-first option again. Is there any way to achieve it?

Question Credit: IzumiSy
Question Reference
Asked May 13, 2019
Tags: macos, bash
Posted Under: Apple
1 Answers

Your Answer