-   Programming (
-   -   How to view source code in linux? (

karthikg356 12-23-2007 12:38 AM

How to view source code in linux?

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 02: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):

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):

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 02:28 AM

karthikg356 don't multi-post.

All times are GMT -5. The time now is 01:52 AM.