Linux清空一个日志文件

cat /dev/null > demo.log  把一个文件设置为空 
原文地址:https://www.cnblogs.com/QuestionsZhang/p/12355486.html