1、cat /dev/null > 要清空的文件
2、echo "" > 要清空的文件
3、>要清空的文件
Linux下清空文件内容的三种方法
猜你喜欢
转载自holiady.iteye.com/blog/2212145
今日推荐
周排行