oreilly.comSafari Books Online.Conferences.


Linux in a Nutshell

This directory of Linux commands is from Linux in a Nutshell, 5th Edition.

Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.

Buy it now, or read it online on Safari Bookshelf.


mailq [options]

System administration command. List all messages in the sendmail mail queue. Equivalent to sendmail -bp.



Show queue specified in /etc/mail/ instead of queue specified in /etc/mail/

-q[!] Isubstring

Show items in mail queue with queue ids containing substring. In this, and in similar options below, invert the match when ! is specified.


Show lost items in mail queue.


Show quarantined items in the mail queue.

-q[!] Qsubstring

Show quarantined messages with quarantine reasons containing substring.

-q[!] Rsubstring

Show items in mail queue with recipients containing substring.

-q[!] Ssubstring

Show items in mail queue with senders containing substring.


Verbose mode.

Linux Resources
  • Linux Online
  • The Linux FAQ
  • Linux Kernel Archives
  • Kernel Traffic

  • Sponsored by: