清空文件内容如下命令:
$ : > filename
$ > filename
$ echo "" > filename
$ echo > filename
$ cat /dev/null > filename
转载出处:http://www.cnblogs.com/doseoer/p/5966488.html
清空文件内容如下命令:
$ : > filename
$ > filename
$ echo "" > filename
$ echo > filename
$ cat /dev/null > filename
转载出处:http://www.cnblogs.com/doseoer/p/5966488.html