在一些地方我得到了这个工作
ls -rt /path/to/log/file/ | tail -1 | xargs tail -f
但我不知道为什么它不会总是有效 (这是快速修复,直到我在这里修复日志滚动)
ls shell tail
ls ×1
shell ×1
tail ×1