linux下清空文件内容

在命令行下#cat /dev/null >listener.log

原文地址:https://www.cnblogs.com/kenwong/p/4692986.html