The Linux cancel command (cancel a print job)

The Linux "cancel" command lets you stop print requests from printing (cancel them).

Linux printing requests can be canceled by either (a) using the printer-id or (b) by specifying the printer name. Here are examples of each approach.

cancel laser-101

This first command cancels the print request identified as "laser-101". (You would have gotten this identifier using an lpstat command.

cancel -u student1

This command cancels all of the print jobs that are queued for the user named "student1".

Linux printing cancel commands - Summary

I hope these examples of using the cancel command to cancel Linux print jobs has been helpful. (I'll try to add more information here the next time I get back to using Linux printing commands.)