测试文件:test.txt

第一种:

$> test.txt

image.png

 

第二种:

$echo "" > test.txt

image.png

 

第三种:

$cat /dev/null > test.txt

image.png

原文地址:https://www.codelovers.cn/article/20190604173542.html

Logo

更多推荐