suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit 12145b33e8b75ce5c9d821ce111355099c952307
parent 9394409235203113bee25c86ec4ea7b96cc0056e
Author: sin <sin@2f30.org>
Date:   Sun, 13 Apr 2014 14:45:15 +0100

Add truncate manpage

Atruncate.1 | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/truncate.1 b/truncate.1 @@ -0,0 +1,18 @@ +.TH TRUNCATE 1 ubase-VERSION +.SH NAME +\fBtruncate\fR - Shrink or extend the size of a file to the specified size +.SH SYNOPSIS +\fBtruncate\fR [\fB-c\fR] \fB-s\fI size file...\fR +.SH DESCRIPTION +\fBtruncate\fR shrinks or extends the size of each \fIfile\fR to the +specified size. A \fIfile\fR argument that does not exist is created. +If a \fIfile\fR is larger than the specified size, the extra data is lost. +If a \fIfile\fR is shorter, it is extended and the extended part (hole) reads +as zero bytes. +.SH OPTIONS +.TP +\fB-c\fR Do not create any files. +.TP +\fB-s\fR Set or adjust the file size by \fIsize\fR bytes. +.SH SEE ALSO +truncate(2), ftruncate(2)