The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-03-2008
Registered User
 

Join Date: Apr 2008
Posts: 4
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?
Reply With Quote
Forum Sponsor
  #2  
Old 07-06-2008
Moderator
 

Join Date: Feb 2007
Posts: 2,328
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.
Reply With Quote
  #3  
Old 07-08-2008
Registered User
 

Join Date: Mar 2008
Location: Bangalore
Posts: 12
And after you install the source code as suggested by Franklin52, you need an editor (like vi or emacs) to read the source code.
Reply With Quote
  #4  
Old 07-14-2008
Registered User
 

Join Date: Jul 2006
Posts: 55
cat file.c | less

works fine also.
Reply With Quote
  #5  
Old 07-15-2008
Registered User
 

Join Date: May 2008
Posts: 21
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0