chembo 发表于 2013-2-4 13:39:27

linux清空一个文件

1,echo "" >test.txt
2,>test.txt
3,cat /dev/null >test.txt
页: [1]
查看完整版本: linux清空一个文件