LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

nroff

formats text for terminal display

TLDR

Format document
$ nroff [file.roff]
copy
Format for terminal
$ nroff -Tascii [file]
copy
Format man page
$ nroff -man [page.1]
copy
Format with macros
$ nroff -ms [file.ms]
copy
Preview output
$ nroff [file] | less
copy

SYNOPSIS

nroff [options] [files]

DESCRIPTION

nroff formats text for terminal display. Part of troff/groff system.The tool processes roff documents. Outputs plain text formatting.

PARAMETERS

FILES

Input files.
-T DEV
Output device.
-man
Use man macros.
-ms
Use ms macros.
-me
Use me macros.
--help
Display help information.

INSTALL

sudo apt install groff-base
copy
sudo dnf install groff-base
copy
sudo pacman -S groff
copy
sudo apk add groff
copy
sudo zypper install groff
copy
brew install groff
copy
nix profile install nixpkgs#groff
copy

CAVEATS

Part of groff. Terminal output. Use groff for typeset output.

HISTORY

nroff originated in Unix V7 for formatting text on line printers and terminals.

SEE ALSO

groff(1), troff(1), man(1)

Copied to clipboard
Kai