LX0-104 · Question #451
If you want to print a listing of your computer's mail queues, what command would you use?
The correct answer is C. mailq. To view the status and contents of mail queues on a Linux system running a Mail Transfer Agent, a specific command-line utility is used.
Question
Options
- Asendmail -l
- Blpq
- Cmailq
- Dmlq
How the community answered
(48 responses)- A2% (1)
- B4% (2)
- C94% (45)
Why each option
To view the status and contents of mail queues on a Linux system running a Mail Transfer Agent, a specific command-line utility is used.
`sendmail -l` is generally used for specific debugging or logging purposes with the Sendmail MTA, not for listing the mail queue.
`lpq` is a command used to inspect the print queue for printers, not the mail queue.
The `mailq` command is a standard utility on Unix-like systems, including Linux, that displays the contents of the mail queue managed by the Mail Transfer Agent (MTA), showing messages awaiting delivery or processing.
`mlq` is not a standard or recognized command for viewing the mail queue on Linux systems.
Concept tested: Mail Transfer Agent (MTA) queue management
Source: https://man7.org/linux/man-pages/man8/mailq.8.html
Topics
Community Discussion
No community discussion yet for this question.