终端

2

获取dmesg的是否有可能每一个日志谈到时间获得dmesg日志中terminal自动/var/log/messages终端

只是为了避免在终端中输入dmesgdmesg <args>

+0

'/ var/log/messages'不是由内核写的,而是由[syslog](http://linux.die.net/man/5/syslog.conf)守护进程写的。 –

+0

@San你想显式地监视'/ var/log/messages'的更新,还是试图让内核消息在控制台中立即显示? –

+0

是的,第二个。我已经知道了,谢谢你的回复! – San

回答

2

运行tail-f /var/log/messages