← 返回命令列表

Linux command

groffer 命令

文本

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

常用示例

View man page

groffer [man-page]

View file in X window

groffer --x [file.roff]

View as PDF

groffer --pdf [file.roff]

View as text in terminal

groffer --tty [file.roff]

Specify viewer

groffer --viewer [evince] [file.roff]

说明

groffer is a wrapper for groff that automatically selects the best display method for a document. It can handle man pages, roff files, and various input formats. The tool detects the environment and chooses between X viewers, PDF viewers, or terminal display, simplifying the groff workflow significantly.

参数

--pdf
Output as PDF.
--ps
Output as PostScript.
--tty
Output to terminal.
--x
Display in X window.
--viewer _PROG_
Specify viewer program.
--mode _MODE_
Display mode.
--help
Display help information.

FAQ

What is the groffer command used for?

groffer is a wrapper for groff that automatically selects the best display method for a document. It can handle man pages, roff files, and various input formats. The tool detects the environment and chooses between X viewers, PDF viewers, or terminal display, simplifying the groff workflow significantly.

How do I run a basic groffer example?

Run `groffer [man-page]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --pdf do in groffer?

Output as PDF.