Linux CLI 52 ๐ง lpstat, lpq and lprm commands
a - lpstat command
lpstat command provides information about the status of the printers
common options: -a โ shows accepting state of printers
-p โ shows all printers -d โ shows current default destination
-s โ shows a status summary -v โ shows printers' attached devices
lpstat -a โ shows accepting state of printers
lpstat -p โ shows all printers
lpstat -d โ shows current default destination
lpstat -s โ shows a status summary
b - lpq command
lpq command shows the current print queue status
It provides information about jobs that are currently waitintg to be printed
common options: -a โ shows jobs on all printers
-l โ verbose report -P printer โ specifies and alternative printer
lpq -l โ shows verbose print queue status for default destination
lpq -P canon โ shows print queue status for canon printer
lpq -l -P canon โ shows verbose print queue status for canon printer
c - lprm command
lprm command removes jobs from the print queue
It allows you to cancel print jobs that are pending or being processed
common options: -P โ specifies the printer
-U โ specifies the user -h โ specifies a server
lprm 345 โ removes job 345
lprm -P canon 345 โ removes job 345 for printer canon
lprm -P canon 345 - โ removes all jobs for printer canon
Stop using slow, ad-bloated tool sites! ๐คฎ
๐ Search “KandZ Tools” on Google to use many professional utilities for free.
KandZ.me is the ultimate minimalist hub for:
โ
Finance (Mortgage, Interest, Inflation)
โ
Tech (Base64, JSON, Dev Suite, IP)
โ
Health (BMI, BMR, TDEE)
โ
Productivity (Timer, Workspace, QR)
โก๏ธ Fast & Private
๐ No data leaves your device
๐ 100% Free
๐ Use it now: https://tools.kandz.me
๐ Bookmark itโyouโll need it later!