# To clear the contents from <file>:
truncate -s 0 <file>

# To truncate <file> to 100 bytes:
truncate -s 100 <file>

# To truncate <file> to 100 KB:
truncate -s 100K <file>

# (M, G, T, P, E, Z, and Y may be used in place of "K" as required.)
