LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Source Code (https://www.linuxquestions.org/questions/linux-newbie-8/source-code-80349/)

ntalektual 08-09-2003 12:39 AM

Source Code
 
How do I view the linux source code?

MasterC 08-09-2003 12:45 AM

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

jalal 08-09-2003 12:47 AM

if you have it installed, it is usually in /usr/src/linux

ntalektual 08-09-2003 12:50 AM

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

ntalektual 08-09-2003 01:22 AM

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

MasterC 08-09-2003 01:30 AM

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


All times are GMT -5. The time now is 02:23 PM.