💾 Archived View for yasendfile.org › TipTricks › cups-cmd.gmi captured on 2023-04-19 at 22:25:06. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

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