cupsenable(8)

πŸ“¦
version 2.4.19 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– cupsenable(8) πŸ’–

okay bestie, welcome to the OpenPrinting manual page for cupsenable(8) β€” yes, that's the glow-up version of your printer's on/off switch and she is iconic. this page also covers her chaotic twin, cupsdisable(8). one starts things, one stops things, both are doing the most. let's get into it πŸŽ€


🌸 NAME 🌸

cupsdisable, cupsenable β€” stop/start printers and classes


✨ SYNOPSIS ✨

cupsdisable [ -E ] [ -U username ] [ -c ] [ -h server[:port] ] [ -r reason ] [ --hold ] destination(s)
cupsenable [ -E ] [ -U username ] [ -c ] [ -h server[:port] ] [ --release ] destination(s)

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: cupsenable starts the named printers or classes, and cupsdisable stops the named printers or classes. that's it. that's the whole vibe. one is the hype friend who gets the printer out of bed, the other is the friend who says "girl, take a nap." 😴


πŸ‘‘ OPTIONS πŸ‘‘

the following options may be used:

  • -E β€” forces encryption of the connection to the server. secure the bag, literally πŸ”
  • -U username β€” uses the specified username when connecting to the server. tell them who you are, main character πŸ’…
  • -c β€” cancels all jobs on the named destination. not just paused β€” cancelled. gone. periodt πŸ’€
  • -h server[:port] β€” uses the specified server and port. talk to a different server, be mysterious 🧚
  • --hold β€” holds remaining jobs on the named printer. useful for allowing the current job to complete before performing maintenance. so the job currently printing gets to finish, and everything queued behind it waits 🫢
  • -r "reason" β€” sets the message associated with the stopped state. if no reason is specified then the message is set to "Reason Unknown". (be honest, bestie, just type the reason πŸ™ˆ)
  • --release β€” releases pending jobs for printing. use after running cupsdisable with the --hold option to resume printing. the un-pause button 🌈

πŸ’œ CONFORMING TO πŸ’œ

unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". also, printer and class names are not case-sensitive. so yes, she's picky, but she's flexible. it's giving ✨range✨

the System V versions of these commands are disable and enable, respectively. they have been renamed to avoid conflicts with the bash(1) built-in commands of the same names. (name collision? we don't know her πŸ’…)

⚠️ the CUPS versions of disable and enable may ask the user for an access password depending on the printing system configuration. this differs from the System V versions which require the root user to execute these commands. so lowkey, CUPS might just ask for a password instead of making you be root. big deal. no cap.

🌟 SEE ALSO 🌟


Copyright Β© 2020-2024 by OpenPrinting.


and that's the whole page, bestie 🫢 this was cupsenable(8) from the CUPS crew, dated 2021-02-28 β€” go forth and start/stop your printers with main character energy. slay πŸ’–βœ¨

πŸ“¦ where this page comes from