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 Senior System Engineer & COO at HCS, Keith wears many hats. He is responsible for a myriad of duties at HCS. Keith is always willing to do the job at hand and is never afraid to get his hands dirty.

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