$ cat /proc/sys/kernel/printk 7 4 1 7 current default minimum boot-time-default
The first integer shows you your current console_loglevel; the second the default log level that you have seen above.
To change your current console_loglevel simply write to this file, so in order to get all messages printed to the console do a simple
# echo 8 > /proc/sys/kernel/printk
Kernel
Under "Device drivers."

本文介绍如何通过修改/proc/sys/kernel/printk文件来调整Linux内核的日志级别,以便控制显示在控制台上的消息类型。默认情况下,系统设置为打印警告及以上的消息,但可以通过写入新的值到该文件中,更改当前的日志级别。
3379

被折叠的 条评论
为什么被折叠?



