102-500 · Question #8
Which of the following commands lists all queued print jobs?
The correct answer is E. lpq. lpq (option E) is correct - the "q" stands for queue, and this command displays the status of the print queue, showing all pending, active, and completed print jobs along with their job IDs and owner. A. lpd - the line printer daemon, a background service that manages printing…
Question
Options
- Alpd
- Blpr
- Clp
- Dlsq
- Elpq
How the community answered
(23 responses)- A9% (2)
- B4% (1)
- C13% (3)
- E74% (17)
Explanation
lpq (option E) is correct - the "q" stands for queue, and this command displays the status of the print queue, showing all pending, active, and completed print jobs along with their job IDs and owner.
- A. lpd - the line printer daemon, a background service that manages printing; it doesn't list jobs.
- B. lpr - used to submit a print job, not view the queue.
- C. lp - also submits print jobs (the System V equivalent of
lpr); not for listing. - D. lsq - not a standard Unix/Linux print command; it doesn't exist in this context.
Memory tip: Think of lpq as "line printer query" - you're querying what's in the queue, just like ls lists files. The pattern holds: lpr = remove a job's counterpart is lprm, and lpq = query the queue.
Topics
Community Discussion
No community discussion yet for this question.