linux下直接清空日志的方法

cat /dev/null > slow.log
或者直接输入
>slow.log

原文地址:https://www.cnblogs.com/0daybug/p/12381696.html