.\" As its sole author, I explicitly place this file in the public domain. .\" It may be used by anyone in any way for any purpose, though I would .\" appreciate credit where it's due. .\" der Mouse, mouse@rodents.montreal.qc.ca, 1999-10-13 .Dd June 19, 2004 .Dt TRUNC 1 .Os NetBSD 1.4 .Sh NAME .Nm trunc .Nd file truncater .Sh SYNOPSIS .Nm .Ar pathname .Ar length .Sh DESCRIPTION .Nm is a small command-line interface to .Xr truncate 2 . .Pp The .Ar pathname and .Ar length arguments are passed fairly directly to .Xr truncate 2 , truncating the file to the size. (On many systems, this can also be used to enlarge a file; whether this works is up to .Xr truncate 2 . ) .Pp If the syscall fails, a message is printed on stderr and the exit code is 1; otherwise, nothing is printed and the exit code is 0. If the command line is invalid (eg, argument count wrong), a message is printed and the exit code is 2. .Sh AUTHOR der Mouse, .Aq mouse@rodents.montreal.qc.ca .