nerdexam
CompTIA

LX0-104 · Question #556

Which of the following commands should be used to print a listing of emails in the system's mail queue?

The correct answer is C. mailq. The mailq command is used to display a listing of messages currently held in the system's mail queue, awaiting delivery.

Essential System Services

Question

Which of the following commands should be used to print a listing of emails in the system's mail queue?

Options

  • Asendmail -l
  • Blpq
  • Cmailq
  • Dmlq

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    91% (21)

Why each option

The `mailq` command is used to display a listing of messages currently held in the system's mail queue, awaiting delivery.

Asendmail -l

`sendmail -l` is not a standard or correct option to list the mail queue; `-bp` or `mailq` is typically used with sendmail.

Blpq

`lpq` is a command used to inspect the print queue, not the email queue.

CmailqCorrect

The `mailq` command is a standard utility on Unix-like systems, often a symlink to or feature of an MTA like `sendmail` or `postfix`. It provides a summary of messages currently in the mail queue, showing details such as message IDs, senders, recipients, and current status, indicating emails waiting to be processed or delivered.

Dmlq

`mlq` is not a recognized or standard command for listing the mail queue.

Concept tested: Email queue inspection

Source: https://manpages.org/man/8/mailq

Topics

#mailq#mail server#email queue

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice