Mail will sent mail to any user.
$mail username/address(Address like email)
The temporary mail messages are in the file
/var/mail/username and it’s contents deleted when
the user uses the message.
The message used with command mail
This will show the mail messages one after the other (Subject only).
When we press ENTER the messages will be shown in detail one after
we can switch to any message using it’s number
The options are
&d — will delete the message
&dt — delete and show the next message
&s file name — store the message in the file specified
&q — quit the mailbox
If we quit the mailbox without deleting/storing messages, it will be stored in spool.
CTR+D can be used to exit or go to the next argument.