To display the printer queue use the command:
lpstat
To display the printer queue for another printer use the command:
lpstat -dprinter
To display the printer queue for all users use the command:
lpstat all