FG
💻 Software

How do I get ls --color=auto to work on Mac OS X?

Fresh5 days ago
Mar 15, 202668595 views
Confidence Score1%
1%

Problem

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 option. How do I get this to work?

Error Output

--color

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I get ls --color=auto to work on Mac OS X?

Low Risk

is actually separate from Bash. Mac OS X has a BSD version of , which requires on the command line, or (and perhaps ) in the environment. See for more info.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment