cancel(1)
β¨ cancel(1) β¨
okay bestie, welcome to the manual page for cancel β she's a section 1 command (iykyk, that's user commands), and she ships with OpenPrinting's CUPS situation. if your printer is out here printing the wrong thing at 2am, this is your girl. π
NAME π
cancel β literally just: cancel jobs. that's it. that's the whole vibe.
SYNOPSIS πΈ
cancel [ -h hostname[:port] ] [ -E ] [ -U username ] [ -a ] [ -u
username ] [ -x ] [ id ] [ destination ] [ destination-id ]
yes she has a lot of options. no we are not skipping any of them. sit down, hydrate, let's go. π¦
DESCRIPTION π
cancel cancels print jobs. periodt.
and if you give her no destination and no id? she doesn't just do nothing, bestie β she goes for the currently printing job on the default destination. so with zero arguments she's still out there working, canceling the thing that's actively printing. main character energy, honestly.
OPTIONS β¨
these are all the flags cancel recognizes. every single one, no crumbs left behind:
-aβ cancel all the jobs on the named destination. and if you didn't name a destination? she cancels all jobs on all destinations. absolute chaos, we love her for it.-Eβ forces encryption when connecting to the server. safety first, always. π-hhostname[:port]β picks an alternate server for you. β οΈ note: this option has to come before all the others. like, it's the one that needs to be first in line. no cutting, no exceptions.-Uusernameβ sets which username to use when connecting to the server. (this is the connect as one, don't mix her up with-u, okay?)-uusernameβ cancels jobs owned byusername. so you're canceling someone's stuff by their name. this is the whose jobs one. π-xβ deletes the job data files in addition to canceling. so she doesn't just cancel, she also cleans up the evidence. π§Ή
lowkey important: -h has to go first. if you put it anywhere else she's not gonna have a good time.
CONFORMING TO π¦
so here's the tea: CUPS is not like the System V printing system, and she wants you to know it.
CUPS lets printer names contain any printable character β with these four exceptions:
SPACETAB"/""#"
also, printer names and class names are not case-sensitive. so MyPrinter and myprinter are the same girl. no cap. π
EXAMPLES π
want to cancel the current print job? say less:
cancel
want to cancel job "myprinter-42" specifically? iconic, here:
cancel myprinter-42
want to cancel everything? unhinged but valid:
cancel -a
NOTES π
okay so the -a and -u username options require administrative access. you can't just roll up and use them, bestie, you need the permissions.
and why? because these restrictions are literally part of the operation policies defined in the cupsd.conf(5) file β for the "Cancel-Jobs" and "Cancel-My-Jobs" operations, respectively. so if it's not working, that's where you go look. π
SEE ALSO π
go read these next, they're all part of the same friend group:
cupsd.conf(5)lp(1)lpmove(8)lpstat(1)- CUPS Online Help (
http://localhost:631/help)
COPYRIGHT π
Copyright Β© 2020-2024 by OpenPrinting.
and that's the whole page, bestie! π«Ά this cutie was brought to you by CUPS and OpenPrinting, dated 2026-03-06, living her best life as cancel(1). now go forth and cancel responsibly. mwah. πβ¨
π¦ where this page comes from
- alpine 3.22: cups-doc 2.4.18-r0 Β· Apache-2.0
- alpine 3.23: cups-doc 2.4.18-r0 Β· Apache-2.0
- alpine 3.24: cups-doc 2.4.19-r1 Β· Apache-2.0
- nixpkgs unstable: cups 2.4.19
- opensuse-leap 16.0: cups-client 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups-client 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups-client 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups-client 2.4.19-160000.2.1 Β· Apache-2.0
- Copyright Β© 2020-2024 by OpenPrinting
- Copyright Β© 2007-2019 by Apple Inc
- Copyright Β© 1997-2006 by Easy Software Products
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms