Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Are you asking what the file name is of the ring buffer? The only time that I know of that it gets written to is during boot time. (But I could be mistaken.) What would be the purpose of putting tail -f on it? Just curious.
Are you asking what the file name is of the ring buffer? The only time that I know of that it gets written to is during boot time. (But I could be mistaken.) What would be the purpose of putting tail -f on it? Just curious.
tail -f <logfile>
Would display the last few lines of the logfile as it keeps getting updated without having to run tail or cat again. Try it.
I am trying to have dmesg displayed in the terminal and keep getting updated without me having to do anything.
tail -f <logfile>
Would display the last few lines of the logfile as it keeps getting updated without having to run tail or cat again. Try it.
I know that, but I am asking what the purpose is of tail -f on the ring buffer. It only gets written to during boot time (I think). So you can tail -f on it but nothing will happen.
It's interesting - under SuSE the ring buffer appears to be made up of two files.
/var/log/messages
/var/log/warn
However, it is not all the lines in those files; it is only the kernel messages. So when dmesg gives results under SuSE it appears to contain those found in the two files with the prefix 'kernel:'.
Keep in mind that the '-c' flag clears the message buffer into stdout. The 'sudo' is unnecessary if you are root. If you feel this is eating too much of your CPU resource, try adding a 'sleep 1' before the loop is done.
A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)
Getting Started with Ubuntu 10.04 (Lucid Lynx) is a comprehensive beginners guide for the Ubuntu operating system; it features comprehensive guides, How Tos and information on anything you need to know after first installing Ubuntu. subscribe
The Incredible Guide to NEW Ubuntu (Karmic Koala)
There are a lot of people still stuck with Windows because it's the ‘easier alternative'. Linux is both cheaper and more versatile than Microsoft's operating system, but the learning curve has frightened off many people. subscribe
The GNU/Linux Advanced Administration
The GNU/Linux systems have reached an important level of maturity, allowing to integrate them in almost any kind of work environment, from a desktop PC to the sever facilities of a big company. subscribe
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it. subscribe