FMT(1)

๐Ÿ’– FMT(1) ๐Ÿ’–

okay so bestie, welcome to fmt โ€” she's literally the simple optimal text formatter and she's about to make your paragraphs look โœจimmaculateโœจ. no cap.


๐ŸŒธ NAME ๐ŸŒธ

fmt โ€” simple optimal text formatter ๐ŸŽ€


โœจ SYNOPSIS โœจ

fmt [-WIDTH] [OPTION]... [FILE]...

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

So what she does is: she reformats each paragraph in the FILE(s) and writes it all out to standard output. glow up for your text, fr fr. ๐Ÿ’…

Little shortcut moment: the option -WIDTH is just an abbreviated form of --width=DIGITS. iykyk.

If you give her no FILE at all, or if FILE is literally just -, she reads from standard input instead. shy but flexible ๐Ÿ’œ

โš ๏ธ bestie pls remember: mandatory arguments to long options are also mandatory for the short options. no skipping, she will not let you.

๐Ÿ‘‘ OPTIONS ๐Ÿ‘‘

  • -c, --crown-margin โ€” preserves the indentation of the first two lines. crown stays on, queen behavior ๐Ÿ‘‘
  • -p, --prefix=STRING โ€” only reformats the lines that begin with STRING, and then reattaches that prefix onto the reformatted lines. selective formatting, she's got taste โœจ
  • -s, --split-only โ€” splits the long lines but does not refill them. just a little trim, no full makeover ๐Ÿ’‡
  • -t, --tagged-paragraph โ€” indentation of the first line is different from the second. tagged, not bagged ๐Ÿท๏ธ
  • -u, --uniform-spacing โ€” one space between words, two after sentences. uniform, consistent, organized, we love a tidy queen ๐ŸŽ€
  • -w, --width=WIDTH โ€” maximum line width, with a default of 75 columns. this is the ceiling, babe ๐Ÿ“
  • -g, --goal=WIDTH โ€” goal width, defaulting to 93% of width. a soft little target, aspirational ๐Ÿ’ซ
  • --help โ€” displays this help and exits. when u need the tea ๐Ÿต
  • --version โ€” outputs version information and exits. identity check ๐Ÿชช

๐ŸŒˆ AUTHOR ๐ŸŒˆ

Written by Ross Paterson. king behavior, we stan ๐Ÿซถ


๐Ÿ˜ญ REPORTING BUGS ๐Ÿ˜ญ

Found a bug? don't just suffer in silence bestie, tell the people:


Copyright ยฉ 2026 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. (yes that's all caps in the original, she's serious about this one ๐Ÿ’€)


โญ SEE ALSO โญ


and that's the whole vibe, bestie ๐Ÿ’– go forth and format. this was GNU coreutils 9.12, from September 2026 โ€” slay, periodt โœจ๐ŸŽ€๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from