lpstat displays status information about the current classes, jobs, and printers. When run with no arguments, lpstat will list jobs queued by the current user.

# To list printers present on the machine and whether they are enabled for printing.
lpstat -p

# To show the default printer:
lpstat -d

# To display all available status information:
lpstat -t

# To show a list of print jobs queued by the specified user:
lpstat -u <user>