← 返回命令列表

Linux command

nroff 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Format document

nroff [file.roff]

Format for terminal

nroff -Tascii [file]

Format man page

nroff -man [page.1]

Format with macros

nroff -ms [file.ms]

Preview output

nroff [file] | less

说明

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

参数

-T _DEV_
Output device.
-man
Use man macros.
-ms
Use ms macros.
-me
Use me macros.
--help
Display help information.

FAQ

What is the nroff command used for?

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

How do I run a basic nroff example?

Run `nroff [file.roff]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -T _DEV_ do in nroff?

Output device.