8 ms·
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)
by d5ve 14y ago
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.