Command-line tool
groff
brew/groff
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
GNU troff text-formatting system
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install groff
Linux
brew install groff
Format output for a PostScript printer, saving the output to a file
groff path/to/input.roff > path/to/output.ps
Render a man page using the ASCII output device, and display it using a pager
groff -man -T ascii path/to/manpage.1 | less --RAW-CONTROL-CHARS
Render a man page into an HTML file
groff -man -T html path/to/manpage.1 > path/to/manpage.html
Related command-line tools
- grap
Language for typesetting graphs - batuta-common
Shared utilities for the Batuta stack: formatting, system info, display helpers - aprender-common
Shared utilities for the Batuta stack: formatting, system info, display helpers - scdoc
Small man page generator - lout
Text formatting like TeX, but simpler - style-check
Parses latex-formatted text in search of forbidden phrases - multimarkdown
Turn marked-up plain text into well-formatted documents - cmark
Strongly specified, highly compatible implementation of Markdown
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents