1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
2 .TH TRUNCATE "1" "April 2010" "GNU coreutils 8.5" "User Commands"
4 truncate \- shrink or extend the size of a file to the specified size
7 \fIOPTION\fR... \fIFILE\fR...
9 .\" Add any additional description here
11 Shrink or extend the size of each FILE to the specified size
13 A FILE argument that does not exist is created.
15 If a FILE is larger than the specified size, the extra data is lost.
16 If a FILE is shorter, it is extended and the extended part (hole)
19 Mandatory arguments to long options are mandatory for short options too.
21 \fB\-c\fR, \fB\-\-no\-create\fR
22 do not create any files
24 \fB\-o\fR, \fB\-\-io\-blocks\fR
25 treat SIZE as number of IO blocks instead of bytes
27 \fB\-r\fR, \fB\-\-reference\fR=\fIFILE\fR
30 \fB\-s\fR, \fB\-\-size\fR=\fISIZE\fR
34 display this help and exit
37 output version information and exit
39 SIZE may be (or may be an integer optionally followed by) one of following:
40 KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.
42 SIZE may also be prefixed by one of the following modifying characters:
43 `+' extend by, `\-' reduce by, `<' at most, `>' at least,
44 `/' round down to multiple of, `%' round up to multiple of.
46 Note that the \fB\-r\fR and \fB\-s\fR options are mutually exclusive.
48 Written by Padraig Brady.
50 Report truncate bugs to bug\-coreutils@gnu.org
52 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
54 General help using GNU software: <http://www.gnu.org/gethelp/>
56 Report truncate translation bugs to <http://translationproject.org/team/>
58 Copyright \(co 2010 Free Software Foundation, Inc.
59 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
61 This is free software: you are free to change and redistribute it.
62 There is NO WARRANTY, to the extent permitted by law.
64 dd(1), truncate(2), ftruncate(2)
66 The full documentation for
68 is maintained as a Texinfo manual. If the
72 programs are properly installed at your site, the command
74 .B info coreutils \(aqtruncate invocation\(aq
76 should give you access to the complete manual.