LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-23-2007, 12:38 AM   #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, 02:04 AM   #2
matthewg42
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):
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, 02:28 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,497

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


Closed Thread

Tags
programming


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:17 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration