Bug 230717

Summary: ls: add option to group directories first
Product: Base System Reporter: vermaden
Component: binAssignee: freebsd-bugs mailing list <bugs>
Status: New ---    
Severity: Affects Only Me CC: cem
Priority: ---    
Version: 11.2-RELEASE   
Hardware: Any   
OS: Any   

Description vermaden 2018-08-17 21:00:00 UTC
The GNU ls has --group-directories-first option which FreeBSD's ls(1) lacks.

% gls
bin   COPYRIGHT  etc  libexec  mnt  proc    root  sys  usr
boot  dev        lib  media    net  rescue  sbin  tmp  var

% gls --group-directories-first
bin   dev  lib      media  net   rescue  sbin  usr  COPYRIGHT
boot  etc  libexec  mnt    proc  root    tmp   var  sys
Comment 1 Conrad Meyer freebsd_committer 2018-08-17 21:22:54 UTC
Is this option commonly used on Linux?  Is it very helpful for anything?