LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2013, 09:29 AM   #1
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Rep: Reputation: 16
Find out the current kernel config settings?


If I'm on a linux system (Any linux e.g. Fedora, SLES, Ubuntu)

Can I find out the current kernel config settings?
How do I do this?
Is there a .config file that stores these?
 
Old 11-19-2013, 10:04 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Have a look in the /boot directory. Look for a file with config in its name.

Examples:
- on a Debian 6 box: config-2.6.32-5-amd64
- on a rhel 6 box: config-2.6.32-220.el6.x86_64
 
2 members found this post helpful.
Old 11-19-2013, 10:24 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Alternatively, you can on most kernels find the current config as a compressed file at /proc/config.gz.
 
1 members found this post helpful.
Old 11-19-2013, 11:08 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
@TobiSGD: The option to do this (CONFIG_IKCONFIG) isn't enabled by default.

Debian (6+7) and RHEL (5+6) don't make use of this out-of-the-box.
 
1 members found this post helpful.
Old 11-19-2013, 12:45 PM   #5
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
I was able to do this:
zcat /proc/config.gz >my_config

and then look at the config file.

Thanks


 
  


Reply


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
View current kernel config hodges Linux - Kernel 3 07-28-2006 03:37 AM
Kernel compiling, how to get current settings? pit-peng Linux - Newbie 4 04-23-2005 01:03 PM
current network config. - how to find out ? Qucho Debian 3 04-27-2004 03:35 AM
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


All times are GMT -5. The time now is 05:00 AM.

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