nerdexam
Linux_Foundation

LFCS · 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. The mailq command is used to display a listing of messages currently held in the system's mail queues.

Submitted by haruto_sh· Apr 18, 2026Operation of Running Systems

Question

If you want to print a listing of your computer's mail queues, what command would you use?

Options

  • Asendmail -l
  • Blpq
  • Cmailq
  • Dmlq

How the community answered

(62 responses)
  • A
    6% (4)
  • B
    3% (2)
  • C
    89% (55)
  • D
    2% (1)

Why each option

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

Asendmail -l

`sendmail -l` is not a standard command or option for listing mail queues; `sendmail` is the Mail Transfer Agent itself.

Blpq

`lpq` is used to examine the line printer spool queue, not the mail queue.

CmailqCorrect

The `mailq` command is specifically designed to display a listing of all messages currently in the sendmail or Postfix mail queues, providing details like sender, recipient, size, and status. It allows administrators to monitor the flow of email and identify potential delivery issues.

Dmlq

`mlq` is not a recognized command for mail queue management.

Concept tested: Mail queue management and monitoring

Source: https://www.man7.org/linux/man-pages/man8/mailq.8.html

Topics

#mail queue#email management#system monitoring#command-line tools

Community Discussion

No community discussion yet for this question.

Full LFCS Practice