OS Manuals

/usr/bin/groff

From groff-base 1.25.0-r0 (os), captured 2026-11-10 by running groff --help (exit 0). permalink

usage: /usr/bin/groff [-abcCeEgGijklNpRsStUVXzZ] [-d ctext] [-d string=text] [-D fallback-encoding] [-f font-family] [-F font-directory] [-I inclusion-directory] [-K input-encoding] [-L spooler-argument] [-m macro-package] [-M macro-directory] [-n page-number] [-o page-list] [-P postprocessor-argument] [-r cnumeric-expression] [-r register=numeric-expression] [-T output-device] [-w warning-category] [-W warning-category] [file ...]
usage: /usr/bin/groff {-v | --version}
usage: /usr/bin/groff {-h | --help}

groff (GNU roff) is a typesetting system that reads plain text input
files that include formatting commands to produce output in
PostScript, PDF, HTML, or DVI formats or for display to a terminal.
See the groff(1) manual page.
Options (27)
OptionDescriptionSource
-h andBecause groff is intended to subsume most users' direct invocations of the troff(1) formatter, the two programs share a set of options.man
-eRun eqn(1) preprocessor.man
-gRun grn(1) preprocessor.man
-GRun grap(1) preprocessor;man
-jRun chem(1) preprocessor;man
-kRun preconv(1) preprocessor.man
-lSend the output to a spooler program for printing.man
-MWorks as troff's option (see below), but is also passed to eqn(1), grap(1), and grn(1).man
-NProhibit newlines between eqn delimiters: pass -N to eqn(1).man
-pRun pic(1) preprocessor.man
-RRun refer(1) preprocessor.man
-sRun soelim(1) preprocessor.man
-SEnable safer mode and ignore any subsequent -U option.man
-tRun tbl(1) preprocessor.man
-UOperate in unsafe mode.man
--versionman
-vWrite version information for groff and all programs run by it to the standard output stream;man
-VWrite the command pipeline that groff would run to the standard output stream and exit.man
-XUse gxditview(1) instead of the usual postprocessor to (pre)view a document on an X11 display.man
-ZDisable postprocessing.man
-aGenerate a plain text approximation of the typeset output.man
-bWrite a backtrace to the standard error stream on each error or warning.man
-cStart with color output disabled.man
-CEnable AT&T troff compatibility mode;man
-EInhibit troff error messages;man
-iProcess standard input after the specified input files.man
-zSuppress formatted device-independent output of troff.man
Exit status (4) from the manual page
2the program cannot interpret its command-line arguments
1it encounters an error during operation
3a command was terminated by a signal
4a command could not be executed
Examples (6) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.