System Grab Bag

View all TLDR pages from Linux (or from all pages)

fold

Folds long lines for fixed-width output devices. More information: https://gnu.org/software/coreutils/fold.
  • Fold lines in a fixed width:
    fold --width {{width}} {{path/to/file}}
  • Count width in bytes (the default is to count in columns):
    fold --bytes --width {{width_in_bytes}} {{path/to/file}}
  • Break the line after the rightmost blank within the width limit:
    fold --spaces --width {{width}} {{path/to/file}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.

Other Projects

This TLDR page is also found in other projects: