LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2003, 12:39 AM   #1
ntalektual
LQ Newbie
 
Registered: Jul 2003
Location: Arkansas
Distribution: Slackware 9.1
Posts: 20

Rep: Reputation: 0
Question Source Code


How do I view the linux source code?
 
Old 08-09-2003, 12:45 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
less

I prefer less to view things. However you can also view it in vi if you plan on editing it later

It depends on what it's written in usually, but I'd think most of your text editors (especially vi) and viewers (especially less) wouldn't have a problem looking at it.

You might actually wanna use a programming tool though, it would likely format it a bit better for the 'eye'.

Cool
 
Old 08-09-2003, 12:47 AM   #3
jalal
Member
 
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
if you have it installed, it is usually in /usr/src/linux
 
Old 08-09-2003, 12:50 AM   #4
ntalektual
LQ Newbie
 
Registered: Jul 2003
Location: Arkansas
Distribution: Slackware 9.1
Posts: 20

Original Poster
Rep: Reputation: 0
thanx jalal
I was wondering about were to find it in the system. I guess I should have been more specific, but you are appreciated as well masterC

Last edited by ntalektual; 08-09-2003 at 12:56 AM.
 
Old 08-09-2003, 01:22 AM   #5
ntalektual
LQ Newbie
 
Registered: Jul 2003
Location: Arkansas
Distribution: Slackware 9.1
Posts: 20

Original Poster
Rep: Reputation: 0
I installed it, and went to /usr/src/linux and this directory doesn't exist. The only directory in /usr/src is packages, and it contained a directory called SOURCES. But I couldn't find the code for the kernel in there. Do you have any other suggestions?
thanx
 
Old 08-09-2003, 01:30 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
If you installed the kernel, you will also need to install:
kernel-sources
Or something like that (that's the name of the package) or what I suggest is just grab yourself a raw copy:
www.kernel.org



Cool
 
  


Reply


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 convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 12:48 PM
where is source code? heraklez Mandriva 5 07-31-2005 05:47 PM
Source code hey_joe Linux - Newbie 1 03-14-2004 01:06 PM
Source Code help palbox2003 Linux - Newbie 1 02-23-2004 04:10 AM
Source Code dvong3 Linux - Newbie 3 07-13-2003 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:08 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
Open Source Consulting | Domain Registration