To start or stop a printer queue on a Linux system, you can use the lpadmin
command. This command is used to administer printer and class queues provided by the Common Unix Printing System (CUPS).
To start a printer queue, use the -E
option to enable the queue, followed by the name of the queue you want to start:
lpadmin -E <queue name>Sourcww:ew.lautturi.com
For example, to start the printer queue printer1
, you would run:
lpadmin -E printer1
To stop a printer queue, use the -X
option to disable the queue, followed by the name of the queue you want to stop:
lpadmin -X <queue name>
For example, to stop the printer queue printer1
, you would run:
lpadmin -X printer1
Keep in mind that you may need to be root or have superuser privileges in order to start or stop a printer queue.
If you are not familiar with the lpadmin
command or the CUPS printing system, you may want to consult the CUPS documentation or a reference guide for more information.