Q. How do I find out if a Particular feature is compiled into my running FreeBSD kernel or not?
A. FreeBSD stores kernel configuration file under directory called /usr/src/sys/$(uname -m)/conf. GENERIC is generic default kernel configuration file for FreeBSD stock kernel. The general format of a configuration file is quite simple. Each line contains a keyword and one or more arguments. Use vi or grep command to find out information about particular kernel feature or driver. For example, find out if ATAPI tape drives compiled or not, enter:
# grep atapist GENERIC
Sample output:
device atapist # ATAPI tape drives
Most lines only contain one argument. If you do not see any output or blank output, feature is not added in your kernel. Anything following a # is considered a comment and ignored. You can also use vi command to view file:
# vi GENERIC
Further readings:
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- My 10 UNIX Command Line Mistakes
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
- Email FAQ to a friend
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: 10/10/08




{ 0 comments… add one now }