summaryrefslogtreecommitdiff
path: root/source/desktop/command_line_printing/index.rst
blob: f0da0c99e3e3e57972be037d581296805cef3fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
***********************
 Command Line Printing
***********************

A list of useful commands and options to interface with a common CUPS
server from the command line.

.. only:: html

   .. contents::

HOWTOs
======

Get a list of available printers
--------------------------------

To get a list of all printers, with details::

   $ lpstat -p

just the list of all available destinations on the local network::

   $ lpstat -e

the current default one::

   $ lpstat -d

Printing in greyscale
---------------------

To get the list of options available for your printer use::

   $ lpoptions [-p <printer_name>] -l

there will be a line like (note that different printers may have a more
specific option that you need to enable)::

   ColorModel/Print Color Mode: Gray *RGB

and then you'll have to add ``-o ColorModel=Gray`` to the ``lpr``
command line, e.g.::

   $ lpr -o ColorModel=Gray <filename>

..
   vim: set filetype=rst: