To move a print job from one queue to another in Linux, you will need to use the lpmove
command, which is part of the cups
(Common Unix Printing System) package.
The lpmove
command allows you to move a print job from one queue to another by specifying the source queue and the destination queue.
To move a print job from one queue to another, follow these steps:
lpstat
command to list the available print queues and print jobs:$ lpstat -p
This will display a list of the available print queues and print jobs.
Identify the source queue and the destination queue. The source queue is the queue where the print job is currently located, and the destination queue is the queue where you want to move the print job.
Use the lpmove
command to move the print job from the source queue to the destination queue. The lpmove
command requires the -d
option to specify the destination queue, and the -p
option to specify the source queue and the print job.
For example, to move a print job with the ID 123
from the queue queue1
to the queue queue2
, you can use the following command:
$ lpmove -d queue2 -p queue1/123
This will move the print job with the ID 123
from the queue queue1
to the queue queue2
.
Note that you will need the appropriate permissions to use the lpmove
command. If you do not have the necessary permissions, you may receive an error message.
You can also use the lp
command to move a print job from one queue to another. The lp
command allows you to specify the destination queue using the -d
option and the source queue and print job using the -i
option. For example, to move a print job with the ID 123
from the queue queue1
to the queue queue2
, you can use the following command:
$ lp -d queue2 -i queue1/123
This will move the print job with the ID 123
from the queue queue1
to the queue queue2
.