The tail command is useful in monitoring log file. By default it shows last 10 lines of file to standard output. Combined with the -f ``follow'' option, it will print each new line from the log file as it is written. For example,
$ tail -f /var/log/messages
You can also view multiple log files simultaneously.
$tail -f /var/log/messages -f /var/log/maillog