To determine whom mail is from.
The from command displays the message headings in your mailbox file to show you whom mail is from. If you specify user, the user mailbox is examined instead of your own (provided that you have read permission to user's mailbox).
Item | Description |
---|---|
-d Directory | Specifies the system mailbox directory. |
-s Sender | Prints message headers only for mail sent by Sender. |
Item | Description |
---|---|
user | Specifies the user mailbox that is examined instead of your own (provided that you have read permission to the user's mailbox). |
from
The names of the senders and message dates are displayed.from -s dale
In this example, only the message headings of the messages sent from user dale are displayed.from dawn
In this example, the message
headings from user dawn's mailbox are displayed (provided
that you have read permission to dawn's mailbox).from -d /var/spool/mail -s jane bob
This allows you to see all messages that bob received
from jane, provided you have the permissions (such
as root).Item | Description |
---|---|
/var/spool/mail/* | System mailboxes for all users. |
/usr/bin/from | User mailbox files. |