To Print Using Cups/Lpr/Lp
Fleetingto print using cups, see https://www.cups.org/doc/options.html
To change the log level of cups dynamically
cupsctl LogLevel=debug # warn
lpr
to specify the pages to print, like pages 7 to 17 lpr -o page-ranges=7-17
to cancel lprm
to see the jobs lpstat
Or
lpq
to see the available options lpoptions -l
for instance
lpoptions -l | gi "color\|size"
PageSize/Media Size: Photo2L LSIZ Card3x5 Photo4x5 Card4x6 Card10x15 Photo_4x12 Card5x7 FLSA *Letter Oufuku ENVELOPE_NO_6_75 Env A4 A5 A6 B5176x250 B5 Env10 EnvA2 EnvC5 EnvC6 EnvDL EnvMonarch EnvChou3 EnvChou4 PostCard 3x5in Card4x6in Card5x8in Executive A48.27x11.69 Legal USLETTER Statement
ColorModel/Output Mode: *RGB CMYGray KGray
lpr -o ColorModel=KGray -o media=a4 myfile
to configure the printer graphically system-config-printer
it also gives more information, like this one
![](https://konubinix.eu/ipfs/bafkreicd62qza4a6ywisiz5sj75jnbkqcssurh3qldzkp5n5wysd6kmd5y?filename=a.png)
I can also use ipp, clk printer ipp print
And to find the alerts
clk printer alerts
clk printer alerts
printer-alert (1setOf octetString) = code=unknown;severity=other;group=other,code=unknown;severity=other;group=other,code=unknown;severity=critical;group=other
printer-alert-description (1setOf textWithoutLanguage) = Genuine %s cartridge.,Genuine %s cartridge.,Out of Paper