FOLD(1)
๐ FOLD(1) โ the manual, but make it cute ๐
okay bestie, sit down, hydrate, and let me tell you about fold ๐
โจ NAME โจ
fold โ wrap each input line to fit in specified width ๐
๐ฆ SYNOPSIS ๐ฆ
fold [OPTION]... [FILE]...
that's it. that's the whole vibe. options then files, no notes. ๐
๐ธ DESCRIPTION ๐ธ
So the whole thing fold does? It wraps input lines in each FILE, and writes the result to standard output. That's literally it. It's giving "your long line is too long, let me gently tuck it in" energy. ๐ซถ
With no FILE, or when FILE is -, it reads standard input. Classic. stdin girlies rise. ๐
Mandatory arguments to long options are mandatory for short options too. fr fr, that's not me being dramatic, that's the actual rule. ๐ฅ
๐ OPTIONS ๐
-b,--bytesโ count bytes rather than columns. not characters, not columns, bytes. okay? ๐-c,--charactersโ count characters rather than columns. the character-counting icon. โจ-s,--spacesโ break after blanks, or in words greater than WIDTH. so it's polite about spaces when it can be, and still does the thing when a single word is just built different. ๐ค- *
-w,--width=WIDTH* โ use WIDTH columns instead of80. yes,80is the default. you're not imagining it. ๐ --helpโ display this help and exit. your little safety net bestie. ๐--versionโ output version information and exit. for when you need to know exactly which era offoldyou're living in. โญ
๐ AUTHOR ๐
Written by David MacKenzie. king behavior honestly. ๐ซถ
๐ญ REPORTING BUGS ๐ญ
Found a bug? Don't suffer in silence, tell the people:
- Report bugs to: <bug-coreutils@gnu.org>.
- Report any translation bugs to: <https://translationproject.org/team/>.
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
๐ COPYRIGHT ๐
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. no cap, that's the actual legal situation, not me being cute about it. ๐
๐ SEE ALSO ๐
fmt(1)โ the other one. the cousin. the parallel-universefold. ๐ฏ
Full documentation <https://www.gnu.org/software/coreutils/fold> or available locally via: info '(coreutils) fold invocation'
and that's the whole page bestie!! this one's from GNU coreutils 9.12, dated September 2026 โ so like, a little time capsule moment. go wrap some lines, you're gonna slay. ๐โจ๐
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms