I am looking for the source code for common system commands used/available on Linux such as cal
, su
, sudo
, ls
, dir
, pwd
, etc. I want to use the source code to learn more about Linux system administration.
Where is the source code located for system binaries like these—code that is outside the Linux kernel, but distributed with most variants of GNU/Linux?
Which Linux distribution is best for learning and viewing the source code for these commands?
Is it possible to alter the code to learn how they really work?