linux 清空文件内容的方式

文章目录

方法一 (会出现空格)

echo "">test.txt

方法二

>test.txt

方法三

cat /dev/null >test.txt

猜你喜欢

转载自blog.csdn.net/qq_36325121/article/details/90049729