linux – How can I tail dmesg

I am using Ubuntu 20.04.3 LTS. I am trying to monitor the serial port connect with my arduino.
I have seen my friend using following command (he performed it in my laptop):

tail -f {dmesg,syslog} | grep -i tty

And whenever I plugin and unplug the arduino, the terminal always keep up showing serial port name, its condition. But when I try it myself, it says that there is not such file or directory. I have search and tried following command:

tail -f var/log/dmesg

tail -f var/log/{dmesg,syslog}

But it seems like it does not show up the serial port or keep up with condition. Would you help me with any ideas?

Read more here: Source link