LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   How to view source code in linux? (http://www.linuxquestions.org/questions/programming-9/how-to-view-source-code-in-linux-608656/)

karthikg356 12-22-2007 11:38 PM

How to view source code in linux?
 
All,

I am new to linux based programming.

i have installed debian linux in my machine and also i have installed all packages related to TCP/IP. now will i be able to view the source code related to TCP/IP Stack?

Also, what is the programming language used in building LINUX, is it C? or shell programming language? or assembly level language?

If any one can tell me how to view source codes in LINUX system....?

matthewg42 12-23-2007 01:04 AM

The kernel, which is the part of the OS where the TCP/IP stack is implemented, is written in C.

For programs which you would install with the debian package management system, you can do this to get the source code for any package (execute this command in a terminal):
Code:

apt-get source <packagename>
The kernel source code is a special case - install the source code by installing the linux-source package like this (as root or with sudo):
Code:

apt-get install linux-source
The source code gets put in /usr/src/linux. An alternative to this is to browse it online. There's a nice site here.

syg00 12-23-2007 01:28 AM

karthikg356 don't multi-post.


All times are GMT -5. The time now is 03:50 AM.