← 返回命令列表

Linux command

cups 命令

文本

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

常用示例

List available printers

lpstat -p

Print file to default printer

lp [file.pdf]

Print to specific printer

lp -d [printer-name] [file.pdf]

Print multiple copies

lp -n [3] [file.pdf]

Check print queue

lpq

Cancel print job

cancel [job-id]

Add printer

lpadmin -p [printer-name] -E -v [ipp://printer/ipp/print] -m everywhere

说明

CUPS (Common UNIX Printing System) manages printing on Linux. Uses IPP protocol for network printing. Provides lp, lpr, lpstat, and other commands. Web interface at http://localhost:631.

FAQ

What is the cups command used for?

CUPS (Common UNIX Printing System) manages printing on Linux. Uses IPP protocol for network printing. Provides lp, lpr, lpstat, and other commands. Web interface at http://localhost:631.

How do I run a basic cups example?

Run `lpstat -p` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more cups examples?

This page includes 7 examples for cups, plus related commands for nearby Linux tasks.