$ lpoptions | tr " " 'n' | extra copies=1 device-uri=socket://192.168.0.15 finishings=3 job-cancel-after=10800 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=1717856401 marker-colors=#000000,#00FFFF,#FF00FF,#FFFF00 marker-levels=5,28,68,27 marker-names="Black Cartridge HP CC530A,Cyan Cartridge HP CC531A,Magenta Cartridge HP CC533A,Yellow Cartridge HP CC532A" marker-types=toner,toner,toner,toner number-up=1 print-color-mode=colour printer-commands=AutoConfigure,Clear,PrintSelfTestPage printer-info='HP
You probably have a number of printers obtainable, you need to use the -p choice to specify a selected printer.
$ lpoptions -p LaserJet
With the -v possibility, the lpinfo command will checklist drivers and associated info, together with the printer’s IP tackle.
$ lpinfo -v file cups-brf:/ community beh direct hp community ipps community lpd community socket community http community ipp community https community smb direct hpfax community socket://192.168.0.15 community dnssd://HPpercent20Colorpercent20LaserJetpercent20CP2025dnpercent20(F47468)._pdl-datastream._tcp.native/
Now that we’ve taken a have a look at all the small print you possibly can view about your printers, let’s dive into printing.
Utilizing the lp command
To print a doc on the default printer, simply use the lp command adopted by the title of the file that you simply wish to print. If the filename consists of blanks (uncommon on Linux techniques), both put the title in quotes or begin getting into the file title and press the tab key to invoke file completion (as proven within the second instance under).
$ lp mystory $ lp the entire story request id is HP-Colour-LaserJet-CP2025dn-2 (1 file(s))
Use the lpq command to view the recordsdata within the printer queue. Be aware, nevertheless, that some recordsdata will print so shortly that they’ll be accomplished earlier than you hit the enter key after typing “lpq” and also you received’t get a list. On this case, I put the lpq command on the identical line to keep away from the print ending too shortly.
$ lp the entire story ; lpq request id is HP-Colour-LaserJet-CP2025dn-3 (1 file(s)) HP-Colour-LaserJet-CP2025dn is prepared and printing Rank Proprietor Job File(s) Whole Measurement energetic shs 3 the entire story 1024 bytes
Printing a number of copies of a file
With the -n possibility, the lp command means that you can specify the variety of copies of a printout you need.