how can i view linux kernel source code?

By add2rahul ·
I tried to see the linux kernel source code but i could not get to do do so.
Ideally it should be there in the /usr/src directory but its not there.
Can somebody suggest me where it should be and how can I get to know about it?
I am using fedora core-5 linux 2.6 kernel.
Ideally i think it should be given with the CD as per GPL terms and condition? right?
Being a starter i dont know how to play with the kernel? Please suggest, how can I get the linux kernel to start kernel module programming?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

kernel? just download the source

by mintoo2cool In reply to how can i view linux kern ...

download the source code from

for any queries regrading the kernel goto and

Collapse -

Although it is in the system, it is compiled

by w2ktechman In reply to how can i view linux kern ...

therefore you cannot see it the way that you want to. Best bet is to download the source, make changes (if needed/wanted) and then compile it for use.

Collapse -

Or just load the kernel source rpm

by marv732 In reply to Although it is in the sys ...

I think it's just

rpm -i kernel-source

with the cdrom in the drive of course...


Collapse -

If you got Red Hat on disk

by seanferd In reply to Although it is in the sys ...

If you have it on CD, there would be about 7 disks, 3 for installing, 3 for source, and one for documentation. If you got it on a DVD, you may have the source files on it.

Otherwise, just download it from Red Hat.

If you are interested only in the Linux kernel, see the other posts here.

Edit: To view the source, open it in a text editor.

Collapse -

I didnt know that, thanks

by w2ktechman In reply to If you got Red Hat on dis ...

I thought you had to download the source separately.

Collapse -

View linux kernel source code, more here

Please post back if you have any more problems or questions.
If this info is useful, please give a thumbs up. Thanks

Related Discussions

Related Forums