Unix mail command

The mail command is a Unix utility that allows users to send and receive email messages. Here are some basic commands and options:

Sending an email

Reading email

Deleting email

Replying to email

Other options

Example usage

Here's an example of how to use the mail command to send an email:

$ mail -s "Hello" [email protected]
To: [email protected]
Subject: Hello

Hello,

This is a test email.

Best regards,
Your Name

$ mail -f
Mail version 8.1 6/6/93
Type? for help
"1 [email protected]"   1 message 1/1   1/1   1/1
  1 [email protected]   1   1/1   1/1   1/1   "Hello"

In this example, the user sends an email to [email protected] with the subject "Hello". The user then uses the mail -f command to read their mailbox and displays the list of messages. The most recent message is highlighted.