Re:Ways to Tail a Log File on Windows and Linux
by d5ve on Sunday February 17, 2013 @01:59PM
(#5236229)
One thing I've found useful on linux is the following:
$ tail -qFn0 /log/dir/*
This will (q)uietly tail all matching files, initially printing 0 lines (n) from each, and (F)ollow any renames/reopenings. It's great when you have many timestamped log files in a directory, and you can't be bothered to work out what the current files are each time.
You will only ever see lines from after you run the command.
You will only ever see lines from after you run the command.