FOLD(1)
π FOLD(1) π
okay bestie, welcome to fold β she's a General Commands Manual girly and she's here to wrap things. not gifts π, lines. let's get into it.
β¨ NAME β¨
fold β writes each file (or standard input if no files are given) to standard output whilst breaking long lines
πΈ SYNOPSIS πΈ
fold [OPTION]... [FILE]...
π¦ DESCRIPTION π¦
so basically: fold writes each file (or standard input if no files are given) to standard output whilst breaking long lines. that's the whole vibe. you hand her some long lines, she folds them up all neat like a fitted sheet that actually fits. no cap. π
π OPTIONS π
-b,--bytesβ count using bytes rather than columns. meaning control characters such as newline are not treated specially. lowkey unhinged behavior but okay, she's serving it anyway π«Ά-c,--charactersβ count using character positions rather than display columns. one character, one unit. simple as. β¨-s,--spacesβ break lines at word boundaries rather than a hard cut-off. she's not gonna chop a word in half mid-syllable, she has manners π-w,--width <WIDTH>β set WIDTH as the maximum line width rather than80. you don't like 80? pick your own number, main character energy π-h,--helpβ Print help. when in doubt, ask her π-V,--versionβ Print version. flex the fit β
π VERSION π
v(uutils coreutils) 0.12.0
π EXAMPLES π
Wrap each line to default width (80 characters):
fold path/to/file
Wrap each line to width "30":
fold -w30 path/to/file
Wrap each line to width "5" and break the line at spaces (puts each space separated word in a new line, words with length > 5 are wrapped):
fold -w5 -s path/to/file
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.
π bestie be aware: uutils is a work in progress, so some of these examples might just... not work. it's not you, it's her. not me being dramatic, that's literally in the fine print π
and that's the whole page, periodt! π she's dated 2026-09-25, that's the version β¨ v(uutils coreutils) 0.12.0 β¨ coming at you fresh from the uutils coreutils crew β stay folded, stay iconic π
ππ¦
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms