Ls

Does someone got the sourcecode of ls or know where i can look for it.i want to know how it works? It's for a school assigned and i know nothing about unix. I searched on kernel.org but i did not found it. Could someone help me.

thnx

You can get the GNU version here:
ftp://ftp.gnu.org/gnu/fileutils/fileutils-4.1.tar.gz
It'll be best if you're on a Unix system to uncompress/untar it, but a utility for Windows that will unpack them is here:
ftp://tsx-11.mit.edu/pub/linux/dos_utils/untgz095.zip

Hope this gets you on the right track.

thanks, I hope that it will help.

I can't get it to unpack with untgz32.
I don't know what i am doing wrong.

The only time I ever used untgz was in DOS, so it was all command line. Actually, now that I think of it, all versions should use the command prompt...

If so, It should follow the same conventions of the other files, but you may have to do it in two steps for tar.gz files... Try something like this:
(for archive named blap.tar.gz)

untgz32 -d blap.tar.gz blap.tar
untgz blap.tar

That _should_ do it... if you still have problems, please let me know... (Also, please post any error message you might get)