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 of 80. yes, 80 is 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 of fold you're living in. โญ

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Written by David MacKenzie. king behavior honestly. ๐Ÿซถ


๐Ÿ˜ญ REPORTING BUGS ๐Ÿ˜ญ

Found a bug? Don't suffer in silence, tell the people:


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-universe fold. ๐Ÿ‘ฏ

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