The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to view symbol table in unix saravanan_nitt High Level Programming 1 02-13-2008 10:02 PM
View TIFF images from UNIX erpankajgupta UNIX for Dummies Questions & Answers 1 12-15-2006 09:00 AM
How to view users in unix jerome UNIX for Dummies Questions & Answers 6 06-09-2006 12:44 PM
how to view the code form /bin/sh singh85 Linux 2 02-05-2004 12:18 PM
How to view ps and pdf file under unix vicky20000 UNIX for Dummies Questions & Answers 2 01-08-2004 08:47 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-22-2002
Registered User
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
Unix code - how to view? What is it?

I'm getting curious about making some of my own commands. I know this is realtively easy with script files and combining various unix standard commands. Is there a way to view the code that is used for these standard commands..i.e. how do I see what code is used for the 'join' command.

I'm led to understand that Linux is open source - but I'm looking at what I have to work with professionally - which is Unix (SunOS 5.6). Is it possible....and would I be freaked at the code used....because one would reason that you couldn't use unix to write the base level unix commands!
__________________
Pete
Forum Sponsor
  #2  
Old 08-22-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
I am not a programmer, but I believe most of those "standard" commands (not the machine dependant kernel code, necessarily though) are written in C - you shouldn't have too hard a time making your own, or modifying an existing.

You may have luck with Solaris source, though - see this article:
http://www.techweb.com/wire/story/TWB19991001S0004

There isn't much that I could find on the Sun site about this just yet, though. Just this page: http://wwws.sun.com/software/solaris/source/

On the other hand, you can browse the source for GNU tools by downloading the appropriate package from the ftp://ftp.gnu.org archive. It can get tricky, though, since it's packaged. For example, the "join" command would be found in the "textutils" packages, along with other commands...

Another alternative that people forget about is the BSD project. You can browse the FreeBSD source via a CVS web interface, found here: http://www.freebsd.org/cgi/cvsweb.cgi/src/
I believe similar method exist for Open and Net BSDs, although I haven't checked.

Hope this helps.
  #3  
Old 08-23-2002
auswipe's Avatar
Registered User
 

Join Date: Nov 2001
Location: Wide Awake Wylie, Texas
Posts: 536
Quote:
Originally posted by LivinFree

Another alternative that people forget about is the BSD project. You can browse the FreeBSD source via a CVS web interface, found here: http://www.freebsd.org/cgi/cvsweb.cgi/src/
I believe similar method exist for Open and Net BSDs, although I haven't checked.
OpenBSD has a WebCVS feature as well located at http://www.openbsd.org/cgi-bin/cvsweb/. NetBSD's can be found at http://cvsweb.netbsd.org/bsdweb.cgi/.
__________________
Not quite as cool as all the other Kids...
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0