Checking Status of Print Jobs

The lpq command can be used to check the status of jobs that are waiting in the print queue. If it is called without any arguments, it will report the status of all jobs currently in the queue for the default printer. The default printer is checked in the following order: If the PRINTER environment variable is set, it is considered to be the default printer. If the PRINTER environment variable is not set, the printer that is aliased to lp in /etc/printcap will be used as the default.

lpq can also be called with a job number to show only the status of a particular job or a user name to show only the status of jobs owned by a particular user. The output of lpq will look something like this:

 bash$ lpq -P simba simba ...

Get FreeBSD® Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.