🧀 Learn Linux

Advanced·Reading and processing text

fold: Wrap to display long text

Put in free practice

Syntax

fold [-w width] [file…]

Options

-w
Number of characters per line

Examples

fold -w 20 README.txt

Usage and sandbox support

The teaching subset wraps lines by character; byte width and terminal display column width are not simulated.

Hands-on exercises

Full documentation ↗

Related commands