102-500 practice question 20 of 30
What command should be used to print a listing of email in the system's mail queue?
Full set: 233 questionsThe mailq command is the standard, user-friendly utility for displaying a list of all messages currently held in the mail queue. It provides a summary of queued messages, including the queue ID, size, arrival time, sender, and recipients. This command is a part of common Mail Transfer Agents (MTAs) like Sendmail and Postfix and is often implemented as a symbolic link or an alias to a more complex command, such as sendmail -bp, to provide a simple interface for a common administrative task.
A. lpq: This command is used to view the status of the line printer (print) queue, not the email queue.
C. mlq: This is not a standard command for viewing the mail queue on Linux systems.
D. sendmail –l: The -l option is not a valid flag for the sendmail command to list the mail queue. The correct flag is -bp.
- mailq(1) Linux man page. The description explicitly states: "mailq prints a summary of the mail messages queued for future delivery."
- sendmail(8) Linux man page. The description for the -bp option states it will "Print a listing of the mail queue," and notes that mailq is an equivalent invocation.
- Postfix documentation, postqueue(1) man page. It describes the mailq command as a Postfix utility that is compatible with the Sendmail mailq command for listing the queue.
Keep practicing
Take the free 102-500 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 102-500 practice questions
- Question 1What output is produced by the following command sequence? echo ‘1 2 3 4 5 6’ | while rea…
- Question 2Which command will set the local machine's timezone to UTC?
- Question 3Which of the following SQL statements will select the fields name and address from the co…
- Question 4Which of the following commands can remove a user from a group?
- Question 5Where are user specific crontabs stored?
- Question 6Which of the following crontab entries will execute myscript at 30 minutes past every hou…
