LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unix source code (https://www.linuxquestions.org/questions/linux-newbie-8/unix-source-code-642957/)

telg 05-17-2008 09:34 PM

unix source code
 
hi

um, i'm sure this has a really obvious answer, but where can i find the source code for all the unix commands in one central location

say i want to look at the source code for the ls command and the ssh command without fishing through google, is there one central location that stores them all? Or is there somewhere else to get them from?

i tried looking at this thread:
http://www.linuxquestions.org/questi...e-code-184937/
however, i couldn't really find much from the link - maybe they are outdated or something


many thanks

archShade 05-17-2008 09:44 PM

http://www.gnu.org/software/coreutils/ Seems to work ok website gives an over view of what they do and some legacy history then links to different places you can get the actual tools (source and all)

Tinkster 05-18-2008 12:17 AM

Quote:

Originally Posted by telg (Post 3156619)
hi

um, i'm sure this has a really obvious answer, but where can i find the source code for all the unix commands in one central location

say i want to look at the source code for the ls command and the ssh command without fishing through google, is there one central location that stores them all? Or is there somewhere else to get them from?

i tried looking at this thread:
http://www.linuxquestions.org/questi...e-code-184937/
however, i couldn't really find much from the link - maybe they are outdated or something


many thanks

Not per se. You *could* conceivably get everything from e.g.
http://packages.debian.org - they certainly have a huge repository
of programs (and the source for those) in stock.

As for the link: you just need to go up a few levels, methynks, to
see other programs.

http://directory.fsf.org/category/index/




Cheers,
Tink

2damncommon 05-18-2008 01:38 AM

Quote:

Originally Posted by telg (Post 3156619)
...um, i'm sure this has a really obvious answer, but where can i find the source code for all the unix commands in one central location

say i want to look at the source code for the ls command and the ssh command without fishing through google, is there one central location that stores them all? Or is there somewhere else to get them from?...

Be aware that this is a bit of a trick question.
UNIX is proprietary and source code is not always available. Sorta...

Older UNIX source code can be found at The UNIX heritage society.

Sun offers source code for OpenSolaris, don't know if that includes core utilities you mention.

Chances are you did actually mean the GNU core utilities usually found on Linux and available for other UNIX and non UNIX operating systems that archShade pointed to.

You can also get source code from the distribution you use. Although Tinkster mentions Debian it is available from other distro sites.

On the other hand UNIX source code from AIX and UNIXWARE are probably not available for download.

telg 05-19-2008 02:05 AM

thanks a lot all

i followed the links and reached this website:

http://www.gnewsense.org/

and took the first link on there which went to some tar downloads,

i just clicked on the 1.8 Gig one so it may take a while to download but i assume that is the right one.

also as an aside, i don't have linux connected to the internet but someone told me that apt-get should provide a list of sources as as binaries when run in the ubuntu gui.

is that right?

pixellany 05-19-2008 08:00 AM

You found the source code for one version (AKA distro) of Linux. It will also be available for others--including Ubuntu.

You can also find source code at individual project pages on Sourceforge, at the GNU site, or the Linux kernel site.


All times are GMT -5. The time now is 06:51 AM.