Displaying Kernel Messages in an SSH Session



How can I observe kernel messages in an SSH session the way that I can on the console?


  • Cumulus Linux, all versions


Use the tail command to print kernel messages inline with the session:

[email protected]$ sudo -v  
[sudo] password for cumulus:  
[email protected]itch$ sudo tail -f /var/log/kern.log &

sudo -v updates the user's sudo cache, so that tail can be run in the background with &.

To stop printing subsequent kernel messages to the console, use the fg command to bring tail to the foreground, and kill tail with ctrl-C:

[email protected]$ fg
[email protected]$
Have more questions? Submit a request


Powered by Zendesk