2

Is it possible to get dmesg logs in terminal automatically each time a log comes to /var/log/messages

just to avoid typing dmesg or dmesg <args>

San
  • 905
  • 3
  • 16
  • 33
  • `/var/log/messages` is not written by the kernel but by the [syslog](http://linux.die.net/man/5/syslog.conf) daemon. – CL. Jun 19 '13 at 09:15
  • @San Are you trying to monitor updates to the `/var/log/messages` explicitly, or are you trying to get kernel messages to display immediately in your console as they occur? – Vilhelm Gray Jun 19 '13 at 19:06
  • Yes, the 2nd one. I have got it, Thank you for your response !! – San Jun 21 '13 at 03:54

1 Answers1

2

Run tail-f /var/log/messages in the terminal.

CL.
  • 173,858
  • 17
  • 217
  • 259