fold

Wrap long lines

low risk

interactive breakdown — edit the command and press Explain
$ 
What it does

Wraps input lines to a given width. See the flags and examples below, and run `man fold` for the full reference.

Common flags
FlagMeaning
-wWidth
-sBreak at spaces
Examples
fold -s -w 80 long.txtWrap at 80 columns · explain & risk-check →
Related
fmt cut
Open the full explainer →More in Text Processing

Reference text is hand-written and may be incomplete — check man fold for your version. Test destructive commands on a non-production system first.