truncate

truncate#

Set a file’s size.

$ truncate -s 0 file
$ truncate -s 1G file