Vellingiri Arul wrote:

>      Where can I get the ls source code.

Hmmm. ls --help yields lots of search-worthy verbiage, including "color is 
not used to distinguish types of files". Sticking that, with quotes, into 
http://www.google.com/codesearch returns:

ftp://alpha.gnu.org/gnu/coreutils/coreutils-4.5.5.tar.gz

BTW this group discusses Ruby, which ls _should_not_ be implemented in.

And I feel your pain - I once foolishly attempted to find the source to 
'cal', in the days before /el Goog/'s codesearch! On a lark...

-- 
  Phlip