Break long lines at a fixed width.
Section: Formatting and Cleanup
Force hard wraps
bash
bash
fold -w 80 long-lines.txtExplanation
Unlike `fmt`, `fold` wraps mechanically rather than reflowing paragraphs.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Formatting and Cleanup