Cups - Command Line Printing - Cheat Sheet

Written by Wim Stockman - on 04 jun 2020  Updated - on 17 dec 2022

Cheat Sheet

lpstat -p
lpstat -d
lpstat -p -d
lpstat -W not-completed
lpstat -t
lpoptions -d PRINTERNAME

This overwrites the ~/.cups/lpoptions file be carefull if you had some options in

lpoptions -p PRINTERNAME -l
lp -p PRINTERNAME -o Media=A4 -o fit-to-page -o Quality=Draft

CREATING SAVED OPTIONS

So you can acces them later with an instance of your printer and don't have to retype everything.

lpoptions -p PRINTERNAME/INSTANCE1 -o Media=A4 -o fit-to-page -o Quality=Draft

then you can print with these options by specifying the instance

lp -p PRINTERNAME/INSTANCE1 file-to-print.ps

SETTING DEFAULT OPTIONS

Just setting the default options of your printer throught the command line.

lpadmin -p PRINERNAME -o OPTION=VALUE

e.g sudo lpadmin -p STAR -o PrintSpeed=1Middle

CANCEL JOBS

cancel
cancel -a
Proxy Information
Original URL
gemini://yasendfile.org/TipTricks/cups-cmd.gmi
Status Code
Success (20)
Meta
text/gemini; lang=en
Capsule Response Time
440.026858 milliseconds
Gemini-to-HTML Time
0.400514 milliseconds

This content has been proxied by September (3851b).