Hi, Am Donnerstag, 10. November 2011, 20:46:28 schrieb Lavender: > Could anyone tell me that where I can find the source > code of software on my system? Such as ls, cd .etc.
first you have to find out to which package the binary you are interested in belongs to, eg ~ $ equery b /bin/ls * Searching for /bin/ls ... sys-apps/coreutils-8.14 (/bin/ls) (If you don't have equery, install gentoolkit) Use the command emerge -f =<cat>/<package>-<version> to download the sources to your distfiles. (if they are already there, the command above downloads nothing) Unpack them to somewhere in your $HOME, done. Best, Michael