Nov 222010
Have you ever having to control more than a single file with your tail -f
?
I will and I just recently found out that you can run the tail command specifying the -f flag several times so you can give the command:
tail -f /varlog/messages -f /var/log/syslog
You’ll get an output like this:
==> messages <== Nov 22 00:43:07 laptop kernel: [ 61.487969] ADDRCONF(NETDEV_UP): eth0: link is not ready
==> syslog <== Nov 22 00:43:31 laptop pulseaudio[1773]: ratelimit.c: 1 events suppressed
==> messages <== Nov 22 00:43:31 laptop pulseaudio[1773]: ratelimit.c: 1 events suppressed
==> syslog <==
Nov 22 00:45:44 laptop ntpd[1118]: kernel time sync status change 6001