Unix code - how to view? What is it?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unix code - how to view? What is it?
# 1  
Old 08-22-2002
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!
# 2  
Old 08-22-2002
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
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/.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to view unix file ?

Hi to all, 1- I'm trying to open a certain file in unix with the tool KEA! 2- i get to the correct folder with the CD command 3- Once in the correct directory i try the following unix command: vi NameOfFile.Z 4- Yes those files finish with a .Z 5 - I get something in the KEA!... (3 Replies)
Discussion started by: Sanchoniathon
3 Replies

2. UNIX for Advanced & Expert Users

How to view the unix logs in windows ??

Hi ! I have a FTP site, where I softlinked my server log file. Now I want to view the logs in IE as I do in unix Some kind of free tool should be there, Can somebody provide me a pointer. Thanks. (0 Replies)
Discussion started by: dashok.83
0 Replies

3. UNIX for Advanced & Expert Users

How to view .tar file in unix

Guys, Could anyone let me know, how we can see the contents of .tar file without extracting it. I know the extracting and combine options Regards (3 Replies)
Discussion started by: sdosanjh
3 Replies

4. Programming

how to view symbol table in unix

hi , How to view the contents of a "c" program symbol table information in unix. (1 Reply)
Discussion started by: saravanan_nitt
1 Replies

5. UNIX for Dummies Questions & Answers

How to view Drive/RAID config in UNIX...

How do you view Drive/RAID configuration in UNIX? We are running an ML370 with 6 drives in it... Version: Sco 5.2.0 Sco Openserver Release 5 (2 Replies)
Discussion started by: bpoulson
2 Replies

6. UNIX for Dummies Questions & Answers

View TIFF images from UNIX

I am new to unix. I want to know if there is any tool or plugin available for AIX unix system through which a user can see the TIFF images. Below are the details: Our application runs on AIX Unix box. The users log in to the application through telnet clients running on Windows 2000/XP systems.... (1 Reply)
Discussion started by: erpankajgupta
1 Replies

7. UNIX for Dummies Questions & Answers

How to view users in unix

Hi, Im newbie here and in unix as well. How can i view users in unix? Im viewed them in shadow file (i typed: vi /etc/shadow) but some unix (im confused if its unix or linux or bsd, but i think it has a little thing in common or differnce) has no shadow file?! What must i do to view the users... (6 Replies)
Discussion started by: jerome
6 Replies

8. Linux

how to view the code form /bin/sh

How do we view th ecode for executables?? qwk,grep.fgrep, etc.. any ideas?? as they are written in C , I think , there should be some place where they are placed. (2 Replies)
Discussion started by: singh85
2 Replies

9. UNIX for Dummies Questions & Answers

How to view ps and pdf file under unix

Hello, I'd like to view ps and pds file under Unix(Xwindow) who could tell me the which software/command can work? Thanks! Vicky (2 Replies)
Discussion started by: vicky20000
2 Replies
Login or Register to Ask a Question