OS Manuals

/usr/bin/fold

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running fold --help (exit 0). permalink

Writes each file (or standard input if no files are given)
to standard output whilst breaking long lines

Usage: fold [OPTION]... [FILE]...

Options:
  -b, --bytes          count using bytes rather than columns (meaning control characters such as
                       newline are not treated specially)
  -c, --characters     count using character positions rather than display columns
  -s, --spaces         break lines at word boundaries rather than a hard cut-off
  -w, --width <WIDTH>  set WIDTH as the maximum line width rather than 80
  -h, --help           Print help
  -V, --version        Print version
Options (6)
OptionDescriptionSource
-b, --bytescount using bytes rather than columns (meaning control characters such as newline are not treated specially)help + man
-c, --characterscount using character positions rather than display columnshelp + man
-s, --spacesbreak lines at word boundaries rather than a hard cut-offhelp + man
-w, --width WIDTHset WIDTH as the maximum line width rather than 80help + man
-h, --helpPrint helphelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.