查看 Linux 内核配置选项
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14376540/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
View Linux Kernel Config Options
提问by GoTTimw
Is it possible to view which flags were used during kernel compilation? 2.6.42.12-1 fedora 15.
是否可以查看内核编译期间使用了哪些标志?2.6.42.12-1 软呢帽 15。
I am sure I've done this before but I can't find anything on google (ie i look for wrong thing :/ ).
我确定我以前做过这个,但我在谷歌上找不到任何东西(即我寻找错误的东西:/)。
采纳答案by MGP
Current kernel config:
当前内核配置:
cat /boot/config-`uname -r`
Other installed kernels:
其他已安装的内核:
ls /boot/config-*
回答by zed_0xff
cat /proc/config.gz | gunzip
if kernel was compiled with corresponding option (usually it is)
如果内核是用相应的选项编译的(通常是)