morpheus base system
git clone git://
Log | Files | Refs

truncate.1 (652B)

      1 .TH TRUNCATE 1 ubase-VERSION
      2 .SH NAME
      3 \fBtruncate\fR - Shrink or extend the size of a file to the specified size
      4 .SH SYNOPSIS
      5 \fBtruncate\fR [\fB-c\fR] \fB-s\fI size file...\fR
      7 \fBtruncate\fR shrinks or extends the size of each \fIfile\fR to the
      8 specified size.  A \fIfile\fR argument that does not exist is created.
      9 If a \fIfile\fR is larger than the specified size, the extra data is lost.
     10 If a \fIfile\fR is shorter, it is extended and the extended part (hole) reads
     11 as zero bytes.
     12 .SH OPTIONS
     13 .TP
     14 \fB-c\fR
     15 Do not create any files.
     16 .TP
     17 \fB-s\fR
     18 Set or adjust the file size by \fIsize\fR bytes.
     19 .SH SEE ALSO
     20 truncate(2), ftruncate(2)