$ fold -w 72 -s letter.txt
$ fold -w 40 notes.txt
| -w | set the maximum line width (default 80 columns) |
| -s | break at spaces so words are not split |
| -b | count bytes rather than display columns |
| --width | set the maximum line width |
| --spaces | break at spaces so words are not split |
| --bytes | count bytes rather than display columns |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.