truncate(1)

πŸ“¦
version 0.7.0 Β· 3 versions
, in epel 10, fedora 43, fedora 44

πŸ’– truncate β€” the manual, but make it cute πŸ’–

okay bestie, this is the page for truncate(1) from the General Commands Manual, and she is that girl. Let's get into it. πŸ¦‹


✨ NAME ✨

truncate β€” shrink or extend the size of each file to the specified size. literally her whole personality. 🌸


✨ SYNOPSIS ✨

truncate [-o|--io-blocks] [-c|--no-create] [-r|--reference] [-s|--size]
[-h|--help] [-V|--version] <FILE>

✨ DESCRIPTION ✨

Shrink or extend the size of each file to the specified size.

that's it. that's the job. she's a size girlie and she's iconic for it πŸ’…


✨ OPTIONS ✨

  • -o, --io-blocks β€” treat SIZE as the number of I/O blocks of the file rather than bytes. 🫢 NOT IMPLEMENTED, so don't come for her, she's just telling you how it's supposed to vibe.
  • -c, --no-create β€” do not create files that do not exist. if it's not there, she's not manifesting it for you. 🚫✨
  • -r, --reference <RFILE> β€” base the size of each file on the size of RFILE. matching energies fr fr πŸ‘―
  • -s, --size <SIZE> β€” set or adjust the size of each file according to SIZE, which is in bytes unless --io-blocks is specified. the main character option honestly πŸ‘‘
  • -h, --help β€” print help. she'll explain herself πŸ’¬
  • -V, --version β€” print version. the receipts πŸ“œ
  • <FILE> β€” the file(s). the ones getting resized. the moment. πŸ”₯

✨ EXTRA ✨

okay so SIZE is an integer with an optional prefix and optional unit. no cap. 🧚

the available units are K, M, G, T, P, E, Z, and Y, and they work like this:

'KB' => 1000 (kilobytes)
'K' => 1024 (kibibytes)
'MB' => 1000*1000 (megabytes)
'M' => 1024*1024 (mebibytes)
'GB' => 1000*1000*1000 (gigabytes)
'G' => 1024*1024*1024 (gibibytes)
yes the uppercase-only-no-B ones are the 1024 ones. lowercase B means powers of 1000. she said be normal about it 😭

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

so like, + and - and the little math symbols are how you tell her "relative to what's already there" instead of "exactly this". obsessed with the range honestly 🌈


✨ VERSION ✨

v(uutils coreutils) 0.7.0

and that's the whole page, bestie πŸŽ€ this was truncate from uutils coreutils 0.7.0, living in the General Commands Manual as truncate(1) β€” mwah, go resize something responsibly, ily πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from
  • epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
  • epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
  • fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
  • fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms