清空文件内容如下命令:
$ : > filename
$ > filename
$ echo "" > filename
$ echo > filename
$ cat /dev/null > filename
转载出处:http://www.cnblogs.com/doseoer/p/5966488.html
时间: 2024-10-06 19:00:45
清空文件内容如下命令:
$ : > filename
$ > filename
$ echo "" > filename
$ echo > filename
$ cat /dev/null > filename
转载出处:http://www.cnblogs.com/doseoer/p/5966488.html