man > fold(1)

📖 NAME

fold – wrap each input line to fit in specified width

🚀 Quick Reference

Use CaseCommandDescription
Wrap lines at default 80 columnsfold file📄 Wraps each line of file to 80 columns wide
Wrap by byte count instead of columnsfold -b fileđŸ”ĸ Counts bytes (e.g., for multibyte characters)
Break at spaces onlyfold -s fileđŸ”Ē Avoids splitting words in the middle
Set custom widthfold -w 40 file📏 Wrap at 40 columns instead of 80
Read from stdinecho "text" | fold -w 10đŸ“Ĩ Pipe input directly

📝 SYNOPSIS

fold [OPTION]... [FILE]...

📚 DESCRIPTION

Wrap input lines in each FILE, writing to standard output.

With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.

âœī¸ AUTHOR

Written by David MacKenzie.

🐛 REPORTING BUGS

GNU coreutils online help: https://www.gnu.org/software/coreutils/
Report any translation bugs to https://translationproject.org/team/

ÂŠī¸ COPYRIGHT

Copyright Š 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

🔗 SEE ALSO

Full documentation https://www.gnu.org/software/coreutils/fold
or available locally via: info '(coreutils) fold invocation'

fold(1)
📖 NAME 🚀 Quick Reference 📝 SYNOPSIS 📚 DESCRIPTION âœī¸ AUTHOR 🐛 REPORTING BUGS ÂŠī¸ COPYRIGHT 🔗 SEE ALSO

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 09:13 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!