在Linux系统上我可以
watch -n1 tail /var/log/whatever.log
或
watch -n1 grep somestuff /var/log/whatever.log
每1秒显示一次日志更新。但是在FreeBSD上, watch 命令完全做了别的事情。谁知道我正在尝试做的好FreeBSD命令? =)
这个怎么样:$ tail -f logfile?
$ tail -f logfile
如果你需要grep:$ tail -f logfile | grep foobar。
$ tail -f logfile | grep foobar
提交评论