<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Tue, Jun 18, 2013 at 9:38 AM, Mike Perkins <span dir="ltr">&lt;<a href="mailto:mikep@randomtraveller.org.uk" target="_blank">mikep@randomtraveller.org.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 18/06/13 14:05, Daryl McDonald wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I&#39;m not understanding how to view /var/log/messages.<br>
<br>
</blockquote></div>
As root, &quot;cat /var/log/messages&quot;; although that could give you thousands of lines if your host has been up long, or &quot;tail -&lt;n&gt; /var/log/messages&quot; where &lt;n&gt; is a number (that&#39;s /just/ a number after the hyphen). That will display the last n lines of the log.<br>

<br>
I would also have a look at dmesg. You don&#39;t need to be root to do that and if you try &quot;dmesg | more&quot; you&#39;ll see how the system boots up and what it thinks it finds.<br>
<br>
The first few pages can be skipped over as that&#39;s the software finding out what CPU and memory you have. Later on you&#39;ll see what peripherals it finds.<div class="im"><br></div></blockquote><div><br></div><div>Instead of trying to find the needle in a haystack, do this:</div>
<div><br></div><div>grep -i -E &quot;kworld|dvb&quot; /var/log/messages</div><div><br></div><div>and</div><div><br></div><div>dmesg | grep -i -E &quot;kworld|dvb&quot;</div><div><br></div><div>The &#39;-i&#39; modifier says to ignore case, and -E is extended regexp, so it will look for lines with kworld OR dvb.</div>
<div><br></div><div>If you want to view the whole file, by all means do the above, but trying to find a single line amongst thousands by eye is going to be difficult.</div><div><br></div><div>Tom</div><div> </div></div></div>
</div>