truncate
Shrink or extend the size of each file to the specified size.
- Provided by: rust-coreutils (Version: 0.2.2-0ubuntu2.1)
- Report a bug
Shrink or extend the size of each file to the specified size.
truncate [-o|--io-blocks] [-c|--no-create] [-r|--reference] [-s|--size] [-h|--help] [-V|--version] <FILE>
Shrink or extend the size of each file to the specified size.
SIZE is an integer with an optional prefix and optional unit. The
available units (K, M, G, T, P, E, Z, and Y) use the following format:
'KB' => 1000 (kilobytes)
'K' => 1024 (kibibytes)
'MB' => 1000*1000 (megabytes)
'M' => 1024*1024 (mebibytes)
'GB' => 1000*1000*1000 (gigabytes)
'G' => 1024*1024*1024 (gibibytes) SIZE may also be prefixed by one of the
following to adjust the size of each file based on its current size:
'+' => extend by
'-' => reduce by
'<' => at most
'>' => at least
'/' => round down to multiple of
'%' => round up to multiple of
v(uutils coreutils) 0.2.2