Mac OSX tip: ls command color output | Comments (2)
Posted in Code, Linux/Unix on 1st April 2008, 9:25 am by Stuart
If you have OSX tiger simply grab the fileutils from fink with
fink install fileutils
Then add the following to your .profile:
export LS_OPTIONS='--color=auto'
eval "`/sw/bin/dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -lah'
alias l='ls $LS_OPTIONS -lA'
In leopard it’s even easier; simply use the -G switch:
alias ls='ls -G'
alias ll='ls -lahG'
alias l='ls -laG'
Completely non-essential but I find it quite handy to be able to tell apart dirs and files by colour.

Any way to get folders first and then files in Finder, as opposed to name being the only sorting parameter?
Robert, this may be what your looking for:
ls -la | sort -nr +1