使用watch命令

watch -c -d -n 1 tail /var/log/nginx/error.log -n 5

上面命令的意思是查看tail命令的输出,-c彩色,-d显示差异,-n 1每秒钟更新一次。

标签: none 阅读量: 898

添加新评论