Leahcim
Leahcim

Reputation: 41999

How to read mail in console

I opened my Mac terminal and it said, "You have mail" . I didn't even know I could get mail in the console. Does anyone know what command I can enter to read the mail?

Upvotes: 17

Views: 24593

Answers (4)

user4179639
user4179639

Reputation:

open  /var/mail
vi /var/mail/apple

Upvotes: 0

Gpak
Gpak

Reputation: 3390

To delete just type delete range e.g delete 1 - 10

Upvotes: 1

Some Dude
Some Dude

Reputation: 171

at the command line prompt ("$"), type "mail" and then hit [Enter] mail will then tell you how many emails you have waiting (possibly none). enter the sequence number of the email you want to read (e.g., "1") and hit [Enter] you will then be shown the text of the email. To delete the email, once read, hit the "d" key and enter. To exit 'mail', hit [Ctrl][d] to close the application

Upvotes: 17

Ernest Friedman-Hill
Ernest Friedman-Hill

Reputation: 81704

Shockingly, it's named... mail. :)

Upvotes: 25

Related Questions