Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 07-27-2006, 08:15 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
View current kernel config


Something I plan to do requires setting a particular kernel parameter to yes. Rather than configure and recompile the kernel with this parameter on, I wondered if there was a way to first check what parameters the currently running kernel was compiled with, as it may already have had this one on.

Thanks very much,
Old 07-27-2006, 08:35 AM   #2
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Rep: Reputation: 30
Providing you have kernel source installed. Usually at /usr/src. OPen a terminal and cd into the kernel source directory, then do make menuconfig or make xconfig to view the kernel configuration editor, or open your favourite editor and open /usr/src/linux-version/.config

The .config file shows all the options that are set or not set.

Regardless of where your kernel source is located, just cd into it and do as above.
Old 07-27-2006, 08:45 AM   #3
Senior Member
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
try to do
make oldconfig
zcat /proc/config.gz > .config
Edit: changed cmdline.gz to config.gz. sorry bout that.

Last edited by konsolebox; 07-27-2006 at 08:46 AM.
Old 07-28-2006, 03:37 AM   #4
LQ Newbie
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
All great solutions, thanks very much - problem solved.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to view the current processes? alyks SUSE / openSUSE 7 10-18-2004 10:04 AM
need to check the current kernel .config file jimi_j Red Hat 1 06-28-2004 06:17 PM
"make config" with current kernel arimus25 Linux - Software 1 03-08-2004 06:26 PM
finding current kernel config? reetep Linux - Newbie 2 12-31-2003 05:43 AM
Where can I see current kernel config? kernelclink Linux - Newbie 3 03-07-2002 02:51 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration