FOLD(1)
β¨ 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 thanWIDTHπ-w,--width=WIDTHβ useWIDTHcolumns instead of the default80--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:
- Report bugs to:
bug-coreutils@gnu.org - GNU coreutils home page:
https://www.gnu.org/software/coreutils/ - General help using GNU software:
https://www.gnu.org/gethelp/ - Report any translation bugs to
https://translationproject.org/team/
π§ 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'
π the legal bits (read them, they're real) π
- 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
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms