I'm trying to move my bash configuration from Ubuntu to Mac OS X and it looks like ls is slightly different. For instance, it won't accept the
How do I get this to work?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
brew install coreutils
Note that this will throw a prefix of
g in front of all the commands (e.g.,
ls). It gives an option to source a file that will alias these for you automatically.
I wasn't sure if there was an option to install them directly without having to do the whole alias thing, so instead in installed MacPorts and did this.
I use this Perl script I wrote on AIX. It’s useful if you’re on a system that doesn’t support
--color, and also where you don’t have sudo to install packages.
Should work on Macintosh too.