测试文件:test.txt 第一种: $> test.txt 第二种: $echo "" > test.txt 第三种: $cat /dev/null > test.txt 原文地址:https://www.codelovers.cn/article/20190604173542.html