Newsflash

Fall 2007 One-Day Linux Training Workshops!

Hands-on, instructor-led Linux and Open Source Software Training is coming to New Jersey and New york City! On a rotating basis, Linux Fundamentals, System and Network Administration will be taught every Saturday starting October 20, 2007 and ending on December 15, 2007.

Events Calendar

September 2010
S M T W T F S
2930311 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 1 2

Latest Events

No Latest Events
Home arrow FAQ arrow Linux Tips arrow How do I view syslog without tail?
How do I view syslog without tail? PDF Print E-mail
Written by Oliver Wainwright, Jr. - RHCE   
Monday, 03 July 2006

Most Linux distros are configured by default to support up to six virtual consoles (VC). VC can be accessed via CTRL-ALT F1 - F12. The F1 thru F12 represent the VC number.

Adding an entry to /etc/syslog.conf, can direct syslogd to send log output to a virtual console in addition to or instead of a log file.
Example /etc/syslog.conf:


 
# Syslog messages spooled to logfile and displayed in VC 12 at syslogd
startup
 
*.*         /var/log/messages
*.*         /dev/tty12

Syslogd will have to be restarted after any changes are made to the configuration file. In Redhat or Fedora run "service syslog restart". Syslog output has been redirected to VC 12 (CTRL-ALT F12).

This technique of redirecting output to a console can be useful for ther commands as well. I use the following for troubleshooting with tcpdump:

 
tcpdump -n -i eth0 > /dev/tty11 &
Tcpdump output has been redirected to VC 11 (CTRL-ALT F11).

Last Updated ( Sunday, 03 December 2006 )
Next >
Linux is a registered trademark of Linus Torvalds.
All other trademarks are trademarks of their respective owners.
Copyright © Malicom Systems, Inc. - The Linux Training Center 2000 - 2007