truncate(1)
π 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 ofRFILE. matching energies fr fr π―-s,--size <SIZE>β set or adjust the size of each file according to SIZE, which is in bytes unless--io-blocksis 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