Skip to main content
The 2024 Developer Survey results are live! See the results
simpler option
Source Link
Hennes
  • 65.3k
  • 7
  • 113
  • 168

For an actual running kernel, the onlyone way to get the config file this is to

cat /proc/config.gz | gunzip > running.config

or to just view zcat /proc/config.gz | less,

zcat /proc/config.gz > running.config

Then running.config will becontain the configuration of the running linux kernel.

However this is only possible if your running linux kernel was configured to have /proc/config.gz. The configuration for this is found in

  • General setup
    • [*] Kernel .config support
      • [*] Enable access to .config through /proc/config.gz

Most distros don'tdistributions do not have this configuration set. They provide kernel config files in their kernel packages and is usually found in /boot/ directory.

For an actual running kernel, the only way to get the config file this is to

cat /proc/config.gz | gunzip > running.config

or to just view zcat /proc/config.gz | less

Then running.config will be the configuration of the running linux kernel.

However this is only possible if your running linux kernel was configured to have /proc/config.gz. The configuration for this is found in

  • General setup
    • [*] Kernel .config support
      • [*] Enable access to .config through /proc/config.gz

Most distros don't have this configuration set. They provide kernel config files in their kernel packages and is usually found in /boot/ directory

For an actual running kernel, one way to get the config file this is to

cat /proc/config.gz | gunzip > running.config

or,

zcat /proc/config.gz > running.config

Then running.config will contain the configuration of the running linux kernel.

However this is only possible if your running linux kernel was configured to have /proc/config.gz. The configuration for this is found in

  • General setup
    • [*] Kernel .config support
      • [*] Enable access to .config through /proc/config.gz

Most distributions do not have this configuration set. They provide kernel config files in their kernel packages and is usually found in /boot/ directory.

For an actual running kernel, the only way to get the config file this is to

cat /proc/config.gz | gunzip > running.config

or to just view zcat /proc/config.gz | less

Then running.config will be the configuration of the running linux kernel.

However this is only possible if your running linux kernel was configured to have /proc/config.gz. The configuration for this is found in

  • General setup
    • [*] Kernel .config support
      • [*] Enable access to .config through /proc/config.gz

Most distros don't have this configuration set. They provide kernel config files in their kernel packages and is usually found in /boot/ directory

For an actual running kernel, the only way to get the config file this is to

cat /proc/config.gz | gunzip > running.config

Then running.config will be the configuration of the running linux kernel.

However this is only possible if your running linux kernel was configured to have /proc/config.gz. The configuration for this is found in

  • General setup
    • [*] Kernel .config support
      • [*] Enable access to .config through /proc/config.gz

Most distros don't have this configuration set. They provide kernel config files in their kernel packages and is usually found in /boot/ directory

For an actual running kernel, the only way to get the config file this is to

cat /proc/config.gz | gunzip > running.config

or to just view zcat /proc/config.gz | less

Then running.config will be the configuration of the running linux kernel.

However this is only possible if your running linux kernel was configured to have /proc/config.gz. The configuration for this is found in

  • General setup
    • [*] Kernel .config support
      • [*] Enable access to .config through /proc/config.gz

Most distros don't have this configuration set. They provide kernel config files in their kernel packages and is usually found in /boot/ directory

Source Link
Jarl
  • 939
  • 6
  • 3

For an actual running kernel, the only way to get the config file this is to

cat /proc/config.gz | gunzip > running.config

Then running.config will be the configuration of the running linux kernel.

However this is only possible if your running linux kernel was configured to have /proc/config.gz. The configuration for this is found in

  • General setup
    • [*] Kernel .config support
      • [*] Enable access to .config through /proc/config.gz

Most distros don't have this configuration set. They provide kernel config files in their kernel packages and is usually found in /boot/ directory