转载:https://blog.csdn.net/qq_40477943/article/details/81535825
Linux清空文件内容的三种方法
测试文件:a.txt
第一种:
$> a.txt
第二种:
$echo "" > a.txt
第三种:
$cat /dev/null > a.txt
转载:https://blog.csdn.net/qq_40477943/article/details/81535825
测试文件:a.txt
$> a.txt
$echo "" > a.txt
$cat /dev/null > a.txt