FOLD(1)

πŸ“¦
version 9.10 Β· 5 versions
, in ubuntu stonking

✨ FOLD(1) ✨

okay bestie, welcome to fold β€” the manual page, the moment, the whole vibe πŸ’… she lives in the GNU coreutils neighborhood and honestly? she's the friend who quietly keeps everyone's text from going off the rails. no cap.


πŸ¦‹ NAME πŸ¦‹

fold β€” wrap each input line so it fits in the width you specified ✨


🌸 SYNOPSIS 🌸

fold [OPTION]... [FILE]...

that's it. that's the whole girl. <italic>OPTION</italic>s and <italic>FILE</italic>s, as many as you want, in any order, she said periodt πŸ‘‘


πŸŽ€ DESCRIPTION πŸŽ€

So what she actually does: she takes the input lines inside every <italic>FILE</italic> you hand her and wraps them, then writes all of it out to standard output. Gorgeous. Effortless. Iconic 🌈

If you give her no <italic>FILE</italic>, or if <italic>FILE</italic> is literally just -, she reads from standard input instead. Lowkey a legend for that 🫢

heads up bestie: mandatory arguments to long options are also mandatory for the short options too. so don't come for her with a half-finished flag and expect it to slay. it will not 😭

πŸ’– OPTIONS πŸ’–

every single one, no skips, we're not doing that here ✨

  • -b, --bytes β€” count bytes instead of columns
  • -c, --characters β€” count characters instead of columns
  • -s, --spaces β€” break after blanks, or in words that are bigger than WIDTH πŸ’€
  • -w, --width=WIDTH β€” use WIDTH columns instead of the default 80
  • --help β€” display this help and exit πŸŽ€
  • --version β€” output version information and exit ⭐

🌟 AUTHOR 🌟

Written by David MacKenzie. king behavior honestly πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Found a lil glitch? tell the devs, not the group chat:


🧚 SEE ALSO 🧚

Full documentation is over at https://www.gnu.org/software/coreutils/fold β€” or you can get it locally with:

info '(coreutils) fold invocation'

  • Packaged by Ubuntu (9.10-1ubuntu2)
  • 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. (like, genuinely no warranty bestie, do not @ her if something breaks 😭)


πŸ’– and that's the whole page! πŸ’– this was GNU coreutils 9.10, dated August 2026, filed under FOLD(1) β€” go wrap some lines and be the main character you were born to be βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from