LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Find out the current kernel config settings? (https://www.linuxquestions.org/questions/linux-newbie-8/find-out-the-current-kernel-config-settings-4175485145/)

HarryBoy 11-19-2013 09:29 AM

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?

druuna 11-19-2013 10:04 AM

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

TobiSGD 11-19-2013 10:24 AM

Alternatively, you can on most kernels find the current config as a compressed file at /proc/config.gz.

druuna 11-19-2013 11:08 AM

@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.

HarryBoy 11-19-2013 12:45 PM

I was able to do this:
zcat /proc/config.gz >my_config

and then look at the config file.

Thanks


:)


All times are GMT -5. The time now is 11:02 PM.