Ethical Hacking, Internet Security & Technology
Pages - Menu
Wednesday, January 7, 2015
Linux Tutorial: How to Show Realtime Dmesg Output in Linux
There are many times in Linux you want to watch your dmesg output, especially when working with hardware to see what’s going on.
There is actually a really easy to way to do this, simply open another terminal and type:
tail -f /var/log/messages
This will show you the last messages posted in realtime. This could go for any log you want actually, and works great.
Also some distrosl have “tailf” which does the same thing.
Also you can pipe your kernel output to another terminal. Open /etc/syslog.conf and add the following line:
This allows you to switch to that terminal to see the kernel output.
I hope this helps!
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)