Open Terminal and type:

nano .bash_profile

At the bottom of your .bash_profile, add these lines and save the file.

NOTE:  If you use a Dark terminal theme, use this:

export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced


NOTE:  If you use a Light terminal theme, use this:

export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad


Once your .bash_profile is saved, enter the command below:


ls -alh

The output should now be in different colors.

Keith Mitnick

As Chief Operating Officer of HCS Technology Group, Keith plays a pivotal role in driving operational excellence and technical innovation.

Speak with an Apple Certified expert today

We’d love to discuss your business challenges, even if you’re not sure what your next step is. No pitch, no strings attached.

Let's Talk