![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Kernel source not found. (can't install network card drivers) | Virtuality | Linux | 9 | 03-25-2008 05:58 AM |
| Am searching for source code of openBSD kernel.. | luckyy | BSD | 1 | 02-23-2008 05:28 AM |
| read the source name | bkan77 | Shell Programming and Scripting | 1 | 07-18-2007 02:35 PM |
| Does anybody know Kernel-2.4.33 source rpm URL?? | sriram.ec | UNIX for Advanced & Expert Users | 2 | 08-21-2006 03:53 AM |
| Need help on Kernel Configuration for FreeBSD | Enoch Chan | BSD | 3 | 09-08-2004 12:32 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to read freebsd kernel source?
I got the freebsd kernel source from the first install CD(in directory:\7.0-RELEASE\src\),isn't right? if so,how can i read it? Is there any tools?
|
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
You can find the source code in /usr/src/sys directory. If there isn't such a directory on your system you can install it with sysinstall.
Run sysinstall as root, choose Configure, then Distributions, then src, then base and sys. Regards Last edited by Franklin52; 07-06-2008 at 05:40 AM. |
|
#3
|
|||
|
|||
|
And after you install the source code as suggested by Franklin52, you need an editor (like vi or emacs) to read the source code.
|
|
#4
|
|||
|
|||
|
cat file.c | less
works fine also. |
|
#5
|
|||
|
|||
|
cat'ting a file into a pipe is almost never necessary and creates an extra unnecessary process. cat should only be used to concatenate files.
Instead do: less file or less < file |
|||
| Google The UNIX and Linux Forums |