This program truncates a file to a given size. The new size can be 2^64-1 maximum. Truncating a new file can be quite a bit faster then using dd if=/dev/zero ... (for a loopback filesystem for example).
Truncate is command-line compatible with the (Free-)BSD version.