[mythtv-users] ?Card?

Tom Lichti tom at redpepperracing.com
Tue Jun 18 13:43:29 UTC 2013


On Tue, Jun 18, 2013 at 9:38 AM, Mike Perkins
<mikep at randomtraveller.org.uk>wrote:

> On 18/06/13 14:05, Daryl McDonald wrote:
>
>> I'm not understanding how to view /var/log/messages.
>>
>>  As root, "cat /var/log/messages"; although that could give you thousands
> of lines if your host has been up long, or "tail -<n> /var/log/messages"
> where <n> is a number (that's /just/ a number after the hyphen). That will
> display the last n lines of the log.
>
> I would also have a look at dmesg. You don't need to be root to do that
> and if you try "dmesg | more" you'll see how the system boots up and what
> it thinks it finds.
>
> The first few pages can be skipped over as that's the software finding out
> what CPU and memory you have. Later on you'll see what peripherals it finds.
>
>
Instead of trying to find the needle in a haystack, do this:

grep -i -E "kworld|dvb" /var/log/messages

and

dmesg | grep -i -E "kworld|dvb"

The '-i' modifier says to ignore case, and -E is extended regexp, so it
will look for lines with kworld OR dvb.

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.

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130618/742435e0/attachment.html>


More information about the mythtv-users mailing list