The lpstat
command displays the status of the CUPS service, printers, classes, and jobs. It supports a number of options. If the command is used without any options, it displays the job queues for the current user:
$lpstat
cupstest-3 kajol 8192 Tue Aug 05 13:24:43 2008
cupstest-4 kajol 8192 Tue Aug 05 13:25:34 2008
To check whether the CUPS server is running, use the -r
option.
$lpstat -r
scheduler is running
$lpstat -d
system default destination: cupsclass
The above command gives information about the default destination printer or class. The output following the command shows that the default destination of the system is cupsclass
.
$lpstat -c cupsclass
This shows the printer class and the member printers belonging to that class. If a particular class is not specified, then the output shows all classes along with their member printers.
members of class cupsclass:
cupsprinter1
cupsprinter2
$lpstat -v cupsprinter2
The command above will show the device to which...