PDA

View Full Version : Linux source code



afreedboy
06-24-2004, 10:52 AM
I wanna see how is the source code of ls and more program in linux. I hope as Linux is open source, I would be able to find it on the net. I tried googling, but I don't get source code. Anyone could provide me a link?

StinkyRyan
06-24-2004, 12:06 PM
What linux do you have if you installed everything it should be in your box somewhere.

chrismiceli
06-24-2004, 04:29 PM
Look here for the file-utils package:
http://www.gnu.org/software/fileutils/fileutils.html
and for the core-utils:
http://www.gnu.org/software/coreutils/coreutils.html
ls is in file-utils and core-utils containts that package.

linuxdude
06-24-2004, 10:45 PM
What linux do you have if you installed everything it should be in your box somewhere.
yeah but he probably doesn't have the source; he has it compiled(especially for something like redhat)

afreedboy
06-25-2004, 12:38 AM
What linux do you have if you installed everything it should be in your box somewhere.

My linux is SuSe9 Professional. Please tell me where could I find source code.



Look here for the file-utils package:

You misunderstood. The links you gave me show how to use ls. That is like man page. I want to see how ls had been written. I want to see source code of ls.

jim mcnamara
06-25-2004, 08:24 AM
No, those pages do get you to download. The GNU site is very wordy, because they try to make each page do a lot of things.

Read the entire page - look for the word download highlighted as a link.

chrismiceli
06-25-2004, 10:12 AM
No, those pages do get you to download. The GNU site is very wordy, because they try to make each page do a lot of things.

Read the entire page - look for the word download highlighted as a link.
He is right, look here for an exact link
http://ftp.gnu.org/pub/gnu/coreutils/coreutils-5.2.1.tar.gz
Now just untar and ungunzip it, then have fun finding what you need.