データを空にするには「: >」を使う。
$ touch test.dat
$ du -h test.dat
4.0K test.dat
$ echo 'test1' >> test.dat
$ echo 'test2' >> test.dat
$ echo 'test3' >> test.dat
$ cat test.dat
test1
test2
test3
$ du -h test.dat
8.0K test.dat
$ : > test.dat
$ cat test.dat
$ du -h test.dat
4.0K test.dat