You can get the source code for bash--and the various utilities. I would try sourceforge, or maybe the free software foundation.
OR--Google using something like "ls source code linux".
I would have thought that "ls" was part of the BASH built-ins, but it is on my system as /bin/ls
|