System Administration Guide: Advanced Administration

How to Cancel a Print Request From a Specific User

  1. (Optional) Become superuser, lp, or assume an equivalent role if you are going to cancel print requests of other users.

  2. Cancel a print request from a specific user.


    $ cancel -u user-list [printer-name]

    -u user-list

    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 quotes.

    printer-name

    Specifies the printer for which you want to cancel the specified user's print requests. 

    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 quotes.

    If you don't specify printer-name, the user's print requests will be canceled on all printers.

Examples—Canceling a Print Request From a Specific User

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