If you are going to cancel the print requests of other users,become superuser, lp, or assume an equivalent role.
Cancel a print request from a specific user.
$ cancel -u user-list [printer-name] |
Cancels the print request for a specified user.
user-list can be one or more user names. Use a space or a comma to separate user names. If you use spaces, enclose the list of names in double quotation marks.
Specifies the printer for which you want to cancel the print requests for a specified user.
printer-name can be one or more printer names. Use a space or a comma to separate printer names. If you use spaces, enclose the list of printer names in quotation marks.
If you don't specify the printer-name, the print requests for the specified user is canceled on all printers.
The following example shows how to cancel all the print requests submitted by the user george on the printer luna.
# cancel -u george luna request "luna-23" cancelled |
The following example shows how to cancel all the print requests submitted by the user george on all printers.
# cancel -u george request "asteroid-3" cancelled request "luna-8" cancelled |