lpq(1)
NAME
lpq − spool queue examination program
SYNOPSIS
lpq [ −Pprinter ] [ job # ... ] [ user ... ]
DESCRIPTION
lpq examines the spooling area used by lpsched(1M) for printing files on the line printer, and reports the status of the specified jobs or all jobs associated with a user. lpq invoked without any arguments reports on any jobs currently in the queue. A −P flag may be used to specify a particular printer, otherwise the default line printer is used (or the value of the PRINTER or LPDEST variables in the environment). All other arguments supplied are interpreted as user names or job numbers to filter out only those jobs of interest.
For each job submitted (i.e. invocation of lpr(1)) lpq reports the user’s name, the job identifier (a number which may be supplied to lprm(1) or cancel(1) for removing a specific job), the date the file was spooled, and the total size in bytes.
FILES
/etc/printcap determines BSD 4.2 printer characteristics
SEE ALSO
lpstat(1), lpr(1), lp(1), lprm(1), cancel(1), lpadmin(1M), lpd(1M) lpsched(1M)
CX/UX User’s Reference Manual