LinuxCommandLibrary

from

display mail sender information

TLDR

Show mail senders

$ from
copy
Show for specific user
$ from [username]
copy
Show sender and subject
$ from -s
copy
Count messages
$ from -c
copy
Check specific mailbox
$ from -f [/var/mail/user]
copy

SYNOPSIS

from [options] [user]

DESCRIPTION

from displays the mail header summary showing who mail is from. It reads the system mailbox and shows sender information for each message.
The tool provides a quick overview of pending mail without opening a mail client. With -s, it shows subjects for quick scanning of message content.
from is useful for checking mail status in shell scripts or quick terminal checks.

PARAMETERS

USER

Username to check mail for.
-s
Show Subject line with sender.
-c
Print count of messages only.
-f FILE
Mailbox file to read.
-n
Don't check for new mail.
--help
Display help information.

CAVEATS

Only works with mbox format mailboxes. May not work with modern mail systems. Limited to local mail.

HISTORY

from is a classic BSD utility for checking local mail. It predates modern mail systems and works with traditional Unix mbox files.

SEE ALSO

mail(1), biff(1), mailx(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community