LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Closed Thread
  Search this Thread
Old 12-22-2007, 11:38 PM   #1
karthikg356
LQ Newbie
 
Registered: Dec 2007
Posts: 8

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

Rep: Reputation: 65
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.
 
Old 12-23-2007, 01:28 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

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


Closed Thread

Tags
programming



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 08:37 AM
how to view source code nick021 Linux - Newbie 4 02-13-2006 12:51 AM
Linux source-code tejprakash_kolla Linux - General 2 10-29-2005 04:54 PM
Get Source Code for Linux seventhsense Linux - Software 6 07-12-2005 04:44 AM
source code for tree view ambitionless Programming 0 09-13-2004 09:39 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

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