File 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; Fedora comes with CUPS. 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.

To install a printer for use with Fedora, run the command:

# redhat-config-printer

and follow the directions.

Get Linux Pocket Guide 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.