6
Stop using tail -f (mostly) (www.brianstorti.com)
seathief 積分 0

google plus上面,有人這樣答

""" ...but tail still rocks for tracking multiple files (tail -n0 -f *log) or tracking a log while being rotated (tail -F). The power of the unix-style toolkit comes from its diversity, not from considering some tool clearly superior to another. """

IngramChen 積分 0

yep... 不過老實說很少一次 tail 多個檔因為 log 會穿插.

less F 這招還蠻常用的,只是它是幾百 ms polling 一次吧,log 會一次跳一串,用起來比較不爽點