TRUNCATE(1)

NAME
truncate - truncate a file (make smaller/larger)

SYNOPSIS
truncate [-c] -s [+|-]size[K|k|M|m|G|g|T|t] file ...

truncate [-c] -r rfile file ...

DESCRIPTION
The program truncate truncates a file to a new size. This program is compatible with the (Free-)BSD version of truncate.

-c  If the file already exists, do not (re-)create it but continue silently.

-r rfile
    Pick the filesize from the given file 'rfile' and use it for the new filesize of 'file'.

-s [+|-]size[K|k|M|m|G|g|T|t]
    Sets the new size of the file.

BUGS
None. This program is totally bug-free.

SEE ALSO
http://vanheusden.com/Linux/

NOTES
This page describes truncate as found in the truncate-0.7 package; other versions may differ slightly. Mail corrections and additions to folkert@vanheusden.com. Report bugs in the program to folkert@vanheusden.com.