1、重建
[root@small-sun shine]# rm -rf old.txt
[root@small-sun shine]# touch old.txt
2、重写
[root@small-sun shine]# echo "" > old.txt
注 :> 重写,覆盖式 >> 尾部追加
1、重建
[root@small-sun shine]# rm -rf old.txt
[root@small-sun shine]# touch old.txt
2、重写
[root@small-sun shine]# echo "" > old.txt
注 :> 重写,覆盖式 >> 尾部追加
转载于:https://www.cnblogs.com/Small-sunshine/p/10870779.html