Operate on the user's mailbox. To send an email the message body is built from
stdin. More information: https://manned.org/mail.
- Open an interactive prompt to check personal mail:
mail
- Send a typed email message with optional CC. The command-line below continues after pressing
<Enter>. Input message text (can be multiline). Press<Ctrl d>to complete the message text:
mail --subject "" --cc ""
- Send an email that contains file content:
mail < --subject ""
- Send a
.tar.gzfile as an attachment:
tar cvzf - | uuencode | mail --subject ""
- Display help:
mail
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
