← 返回命令列表

Linux command

grops 命令

文件

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Convert groff to PostScript

groff -Tps [file.roff] > output.ps

Direct grops usage

grops [file] > output.ps

Specify paper size

grops -p [a4] [file] > output.ps

Landscape mode

grops -l [file] > output.ps

说明

grops is a groff output driver that produces PostScript. It is the primary driver for high-quality printed output from groff, generating Level 2 PostScript with support for color, graphics, and embedded fonts. Output can be printed directly or converted to PDF with tools like ps2pdf.

参数

-c _N_
Number of copies.
-F _DIR_
Font directory.
-l
Landscape orientation.
-p _SIZE_
Paper size (letter, a4, legal).
-P _PROLOGUE_
Use prologue file.
-b
Broken flag for compatibility.
--help
Display help information.

FAQ

What is the grops command used for?

grops is a groff output driver that produces PostScript. It is the primary driver for high-quality printed output from groff, generating Level 2 PostScript with support for color, graphics, and embedded fonts. Output can be printed directly or converted to PDF with tools like ps2pdf.

How do I run a basic grops example?

Run `groff -Tps [file.roff] > output.ps` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c _N_ do in grops?

Number of copies.