How to remove all mails in the Linux terminal

Whenever we run a cron-job or send an email from the terminal in Linux environment, it auto saves an email into the terminal mail box. As time goes, the mail box can be huge and we should remove emails completely.

To remove all mails in the Linux mail box, run these commands:

mail -N
d *
q
  • The first command list all mails with no summary.
  • The second command simply delete all of them
  • Then quit

That's all.

Source: http://stackoverflow.com/a/22154303/371240

🔥 HOT: Interested in boosting your WordPress SEO? My Slim SEO plugin is a super lighweight and automated plugin that handles most the hard work for you: meta tags, sitemap, redirection, schema & link building.

👉 Have a look and you will love it: wpslimseo.com

Leave a Reply

Your email address will not be published. Required fields are marked *


Copyright © 2024 Deluxe Blog Tips. All rights reserved.

My products: Meta Box | Slim SEO