spool queue examination utility
lprq [-l] [-Pprinter] [jobnum ...] [user ...]
Job ordering is dependent on the algorithm used to scan the spooling directory and is supposed to be FIFO (First in First Out).
File names comprising a job may be unavailable (when lpr is used as a sink in a pipeline), in which case the file is indicated as ``standard input.''
If lprq warns that there's no daemon present (i.e. due to some malfunction), the lprc command can be used to restart the printer daemon.
The lprq utility examines the spooling area used by lpd for printing files on the line printer, and reports the status of the specified jobs or all jobs associated with a user. Invoking lprq without any arguments will show any jobs currently in the queue.
If the following environment variable exists, lprq uses it:
Due to the dynamic nature of the information in the spooling directory, lprq may report unreliably. Output formatting is sensitive to the line length of the terminal; this can result in widely spaced columns.