nerdexam
CompTIA

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.

Essential System Services

Question

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

Options

  • Alpq
  • Bmailq
  • Cmlq
  • Dsendmail -l

How the community answered

(47 responses)
  • A
    2% (1)
  • B
    91% (43)
  • C
    2% (1)
  • D
    4% (2)

Why each option

To print a listing of email currently held in the system's mail queue, the `mailq` command should be used.

Alpq

`lpq` is used to display the status of print queues, not email queues.

BmailqCorrect

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).

Cmlq

`mlq` is not a standard or recognized command for viewing mail queues.

Dsendmail -l

`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

#mail queue#email management

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice