Difference between revisions of "cups command line printing and options"

From thelinuxwiki
Jump to: navigation, search
(Created page with "manully adding a remote cups que (printer) existing on another computer lpadmin -p printer_name -E -v ipp://server_name_or_ip/printers/printer_share_name category:cups")
 
 
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
cups cli
 +
 +
== List available printers==
 +
lpstat -p -d
 +
 +
 +
== print from command line==
 +
 +
example:
 +
lp -d HP_p1006 filename.pdf
 +
or from standard input
 +
echo "test" | lp -d HP_p1006
 +
 +
[http://www.cups.org/documentation.php/doc-1.6/sharing.html Printer Sharing]
 +
 
manully adding a remote cups que (printer) existing on another computer
 
manully adding a remote cups que (printer) existing on another computer
 
  lpadmin -p printer_name -E -v ipp://server_name_or_ip/printers/printer_share_name
 
  lpadmin -p printer_name -E -v ipp://server_name_or_ip/printers/printer_share_name
 +
 +
delete a printer
 +
lpadmin -x ''printer-name''
  
 
[[category:cups]]
 
[[category:cups]]

Latest revision as of 04:25, 5 May 2013

cups cli

List available printers

lpstat -p -d


print from command line

example:

lp -d HP_p1006 filename.pdf

or from standard input

echo "test" | lp -d HP_p1006

Printer Sharing

manully adding a remote cups que (printer) existing on another computer

lpadmin -p printer_name -E -v ipp://server_name_or_ip/printers/printer_share_name

delete a printer

lpadmin -x printer-name