November 21, 2024
How To View Kernel Messages In Linux In Real Time

Here’s how to view kernel messages in Linux in real time:

1. Issue the following command at the terminal –

sudo watch “dmesg | tail -20”

How To View Kernel Messages In Linux In Real Time

2. Enter the user password when prompted. The above command will display the latest 20 lines of the kernel messages in real time. This is very useful in troubleshooting hardware issues.

How To View Kernel Messages In Linux In Real Time

By admin

Related Post