Enable color coding when using the ls command

  Linux, Macintosh

By default color coding is disabled for the ”’ls”’ command under Ubuntu. If you wish to enable it simply add the following to your ”’.bashrc”’ file

alias ls='ls --color=auto'

Note: This is different than enabling color coding under Mac OSX as documented.

If you wish for color coding when using the ”’ls”’ command under Mac OSX simply add the following to your .profile in the root of your home directory. You may have to create the file

alias ls="ls -G"

This will allow you to see files and folders in different colors to more easily differentiate between them.

LEAVE A COMMENT