![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
Quote:
__________________
Not quite as cool as all the other Kids... |
||||
| Google The UNIX and Linux Forums |