Linux下清空文件内容的三种方法

1、cat /dev/null > 要清空的文件
2、echo "" > 要清空的文件
3、>要清空的文件

猜你喜欢

转载自holiady.iteye.com/blog/2212145