The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 Debian 9 03-25-2008 08:58 AM
Am searching for source code of openBSD kernel.. luckyy BSD 1 02-23-2008 08:28 AM
read the source name bkan77 Shell Programming and Scripting 1 07-18-2007 05:35 PM
Does anybody know Kernel-2.4.33 source rpm URL?? sriram.ec UNIX for Advanced & Expert Users 2 08-21-2006 06:53 AM
Need help on Kernel Configuration for FreeBSD Enoch Chan BSD 3 09-08-2004 03:32 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 07-03-2008
zhouq3132 zhouq3132 is offline
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?
  #2 (permalink)  
Old 07-06-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,293
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 08:40 AM..
  #3 (permalink)  
Old 07-08-2008
ajitabhpandey ajitabhpandey is offline
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.
  #4 (permalink)  
Old 07-14-2008
_R3d _R3d is offline
Registered User
  
 

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

works fine also.
  #5 (permalink)  
Old 07-15-2008
Danny.Chouinard Danny.Chouinard is offline
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0