Enable color coding when using the ls command

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.

jhudgins has written 32 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>