Linux command
pic 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Process pic to troff
pic [diagram.pic] | troff
Generate output
pic [diagram.pic] > [output.troff]
Safe mode
pic -S [diagram.pic]
Check syntax only
pic -n [diagram.pic]
Show version
pic --version
说明
pic is a troff preprocessor for drawing diagrams. It converts textual descriptions into troff drawing commands. Diagrams use geometric primitives: boxes, circles, lines, arrows. Positioning is relative or absolute. Objects connect with lines and arrows. Labels and text annotate elements. The language supports macros and variables. Complex diagrams build from reusable components. Output integrates with groff/troff document processing. Pic diagrams embed in technical documents.
参数
- -S
- Safe mode (no shell commands).
- -n
- Suppress output, check syntax.
- -C
- Compatible mode.
- -D
- Define macro.
- -T _DEVICE_
- Output device.
- -z
- Draw invisible lines and boxes as zero-size objects (GNU extension).
- --help
- Display usage information.
- --version
- Print version information.
FAQ
What is the pic command used for?
pic is a troff preprocessor for drawing diagrams. It converts textual descriptions into troff drawing commands. Diagrams use geometric primitives: boxes, circles, lines, arrows. Positioning is relative or absolute. Objects connect with lines and arrows. Labels and text annotate elements. The language supports macros and variables. Complex diagrams build from reusable components. Output integrates with groff/troff document processing. Pic diagrams embed in technical documents.
How do I run a basic pic example?
Run `pic [diagram.pic] | troff` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -S do in pic?
Safe mode (no shell commands).