fmt

Reformat paragraphs

low risk

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

Reflows text to a target width. See the flags and examples below, and run `man fmt` for the full reference.

Common flags
FlagMeaning
-wMaximum width
Examples
fmt -w 72 notes.txtWrap prose at 72 columns · explain & risk-check →
Related
fold
Open the full explainer →More in Text Processing

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