View Linux Kernel Config Options

28,122

Solution 1

Current kernel config:

cat /boot/config-`uname -r`

Other installed kernels:

ls /boot/config-*

Solution 2

cat /proc/config.gz | gunzip

if kernel was compiled with corresponding option (usually it is)

Share:
28,122
GoTTimw
Author by

GoTTimw

Updated on January 14, 2020

Comments

  • GoTTimw
    GoTTimw over 4 years

    Is it possible to view which flags were used during kernel compilation? 2.6.42.12-1 fedora 15.

    I am sure I've done this before but I can't find anything on google (ie i look for wrong thing :/ ).

  • Peter Hlavatík
    Peter Hlavatík almost 7 years
    what is that "corresponding option"?
  • mirh
    mirh over 3 years
    CONFIG_IKCONFIG_PROC=y