OS Manuals

/usr/bin/fold

GNU core utilities

From coreutils 9.12-r7 (os), captured 2026-11-05 by running fold --help (exit 0). permalink

Also provided by 1 other package version
Usage: /usr/bin/fold [OPTION]... [FILE]...
Wrap input lines in each FILE, writing to standard output.

With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.
  -b, --bytes
         count bytes rather than columns
  -c, --characters
         count characters rather than columns
  -s, --spaces
         break after blanks, or in words greater than WIDTH
  -w, --width=WIDTH
         use WIDTH columns instead of 80
      --help
         display this help and exit
      --version
         output version information and exit

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/>
Full documentation <https://www.gnu.org/software/coreutils/fold>
or available locally via: info '(coreutils) fold invocation'
Options (6)
OptionDescriptionSource
-b, --bytescount bytes rather than columnshelp + man
-c, --characterscount characters rather than columnshelp + man
-s, --spacesbreak after blanks, or in words greater than WIDTHhelp + man
-w, --width WIDTHuse WIDTH columns instead of 80help + man
--helpdisplay this help and exithelp + man
--versionoutput version information and exithelp + 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.