Register a domain and help support LQ
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


Closed Thread
  Search this Thread
Old 12-23-2007, 12:38 AM   #1
LQ Newbie
Registered: Dec 2007
Posts: 8

Rep: Reputation: 0
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....?
Old 12-23-2007, 02:04 AM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
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.
Old 12-23-2007, 02:28 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,623

Rep: Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393
karthikg356 don't multi-post.

Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to view source code in LINUX? karthikg356 Linux - General 4 12-23-2007 09:37 AM
how to view source code nick021 Linux - Newbie 4 02-13-2006 01:51 AM
Linux source-code tejprakash_kolla Linux - General 2 10-29-2005 05:54 PM
Get Source Code for Linux seventhsense Linux - Software 6 07-12-2005 05:44 AM
source code for tree view ambitionless Programming 0 09-13-2004 10:39 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration