How to Truncate a File on FreeBSD Posted on November 19, 2009 by Titus Barik To truncate a file so that it is zero bytes, do the following: truncate -s 0 filename