LX0-104 · Question #524
Which of the following commands should be used to print a listing of email in the system's mail queue?
The correct answer is B. mailq. To print a listing of email currently held in the system's mail queue, the mailq command should be used.
Question
Options
- Alpq
- Bmailq
- Cmlq
- Dsendmail -l
How the community answered
(47 responses)- A2% (1)
- B91% (43)
- C2% (1)
- D4% (2)
Why each option
To print a listing of email currently held in the system's mail queue, the `mailq` command should be used.
`lpq` is used to display the status of print queues, not email queues.
The `mailq` command is specifically designed and commonly used to display the contents of the mail queue, providing information about messages that are waiting to be sent or delivered by the system's Mail Transfer Agent (MTA).
`mlq` is not a standard or recognized command for viewing mail queues.
`sendmail -l` typically relates to logging levels or daemon options for the `sendmail` MTA, and it does not list the mail queue; the equivalent to `mailq` using `sendmail` would be `sendmail -bp`.
Concept tested: Linux mail queue management
Source: https://man7.org/linux/man-pages/man8/mailq.8.html
Topics
Community Discussion
No community discussion yet for this question.