简体   繁体   English

我在哪里可以找到 Linux ubuntu 中的 kernel.config 文件?

[英]Where would I find the kernel .config file in Linux ubuntu?

Im copying my kernel config file from an existing system to the kernel tree, and I entered this command: "/boot/config$(uname -r)" Yet I got "bash: /boot/config-5.15.0-46-generic: Permission denied" Does anyone know why its saying permission denied and how to fix?我将我的 kernel 配置文件从现有系统复制到 kernel 树,然后我输入了这个命令:“/boot/config$(uname -r)” 但是我得到了“bash: /boot/config-5.15.0-46-通用:权限被拒绝”有谁知道为什么它说权限被拒绝以及如何解决? I am using virtual box ubuntu linux O_o我正在使用虚拟盒子 ubuntu linux O_o

As @Tsyvarev mentioned in comments it is possible that you're trying to execute file, that have no exec permissions:正如@Tsyvarev 在评论中提到的那样,您可能正在尝试执行没有执行权限的文件:

$ ls -l /boot
...
-rw-r--r-- 1 root root    217414 Aug 20  2021 config-5.4.0-rc1+
...

Try to run: cat /boot/config-$(uname -r) to read the config file for currently running kernel.尝试运行: cat /boot/config-$(uname -r)以读取当前运行的 kernel 的配置文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM