linux 清空文件内容命令

1. > test.log

2. cat /dev/null  test.log

3.echo "" >test.log

原文地址:https://www.cnblogs.com/ming-blogs/p/11734543.html