Printing
lpr
|
Print a file. |
lpq
|
View the print queue. |
lprm
|
Remove a print job from the queue. |
Linux has two popular printing systems, called CUPS and LPRng.
Both systems use commands with the same names: lpr
, lpq
,
and lprm
. However, these commands
have different options depending whether you’re using CUPS or LPRng. To
be generally helpful, we will present common options that work with both
systems.
Installing a printer on Linux used to require editing a cryptic configuration file, such as /etc/cups/printers.conf or /etc/printcap. Nowadays, both GNOME and KDE have printer configuration tools in their system settings that generate these files.
Get Linux Pocket Guide, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.