Software & Apps Linux Check What Your Linux System Is Printing With the "lpstat" Command Use 'lpstat' to display status information about printers and print jobs by Juergen Haas Writer Former Lifewire writer Juergen Haas is a software developer, data scientist, and a fan of the Linux operating system. our editorial process Juergen Haas Updated on February 27, 2020 anilyanik / Getty Images Linux Switching from Windows Tweet Share Email The lpstat command for Linux displays status information about current classes, jobs, and printers. When run with no arguments, lpstat lists jobs queued by the user. Linux desktop environments support a graphical tool for viewing and editing print queues. However, the mechanism differs—sometimes significantly—by DE. The lpstat shell program works on all distributions regardless of DE. Command Synopsis The command accepts the following format: lpstat [ -E ] [ -a [ destination(s) ] ] [ -c [ class(es) ] [ -d ] [ -h server ] [ -l ] [ -o [ destination(s) ] ] [ -p [ printer(s) ] ] [ -r ] [ -R ] [ -s ] [ -t ] [ -u [ user(s) ] ] [ -v [ printer(s) ] [ -W [ which-jobs ] ] Switches Various switches extend or target the command's functionality: -E: Forces encryption when connecting to the server.-a [printer(s)]: Shows the accepting state of printer queues. If no printers are specified then all printers are listed.-c [class(es)]: Shows the printer classes and the printers that belong to them. If no classes are specified then all classes are listed.-d: Shows the current default destination.-h server: Specifies the CUPS server to communicate with.-l: Shows a long listing of printers, classes, or jobs.-o [destination(s)]: Shows the jobs queue on the specified destinations. If no destinations are specified all jobs are shown.-p [printer(s)]: Shows the printers and whether they are enabled for printing. If no printers are specified then all printers are listed.-r: Shows whether the CUPS server is running.-R: Shows the ranking of print jobs.-s: Shows a status summary (including the default destination), a list of classes and their member printers, and a list of printers and their associated devices. This is equivalent to using the -d, -c, and -p options.-t: Shows all status information. This is equivalent to using the -r, -c, -d, -v, -a, -p and -o options.-u [user(s)]: Shows a list of print jobs queued by the specified users. If no users are specified, lists the jobs queued by the current user.-v [printer(s)]: Shows the printers and what device they are attached to. If no printers are specified then all printers are listed.-W [which-jobs]: Specifies which jobs to show, completed or not-completed (the default). Usage Comments Review the lp command and the CUPS Software Users Manual for additional information about the Linux print subsystem. Because every distribution and kernel-release level are different, use the man command to see how the lpstat command is used on your particular computer.