💾 Archived View for yasendfile.org › TipTricks › cups-cmd.gmi captured on 2022-07-16 at 14:20:18. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Written by Wim Stockman - on 04 jun 2020
lpstat -p
lpstat -d
lpstat -p -d
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
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