[CentOS] Terminal emulation and serial ports

Les Mikesell lesmikesell at gmail.com
Tue Aug 25 16:54:27 UTC 2009


Robert Heller wrote:

>> Of course first I tried dmesg, and had to go through lots of output 
>> until the last lines said it is indeed ttyUSB0.  Then I tried 'ls 
>> /dev/tty*' and there it was too.  So I am on my way (I hope)...
> 
> One of the really nifty tools (part of coreutils) is 'tail'.  The
> output of dmesg (or the contents of /var/log/messages) is often large
> (and generally of no interest to the task at hand) and very often the
> info you want is in the last few lines (eg the blather generated by the
> Hotplug code), so it is useful to do:
> 
> % dmesg|tail
> 
> OR
> 
> % tail /var/log/messages
> 
> to get this information.

Or use 'less' for something a little more interactive:
dmesg |less
then you can use all the vi-style motion and search commands like
G - go to end
b - backwards page
?pattern<enter>  - search backwards
etc.

-- 
   Les Mikesell
    lesmikesell at gmail.com




More information about the CentOS mailing list