Printing
lpstat
Show printer and print job status.
printerqueuejobs
Additional Notes
lpstat is a printing command used to show printer and print job status. It shows printer status, queue state, and detailed information about print jobs.
Use lpstat -p to list all available printers and their status. Use lpstat -o to show active print jobs. The BSD-style equivalent is lpq.
Syntax
lpstat [options] [arguments]
Parameters
options: Flags that change howlpstatbehaves.printer: Printer name or destination queue.job: Print job ID to inspect or manage.
Common Options
--help: Show command help when supported.--version: Show version information when supported.
Examples
lpstat --help
man lpstat
Practical Notes
Options can vary by distribution and package version. Use man lpstat, lpstat --help, or the package documentation for exact syntax.