How to view linux kernel logs live

linux-kernellogging

I have a kernel module logging input of some sensor while I work with it. I want to see if there is a command that outputs /var/log/messages (for example) but waits for more logs to come. That is, some program like dmesg except that it stays on and keeps printing newly-come logs.

Best Answer

Have you tried tail -F, eg.

tail -F /var/log/messages
Related Topic