0% found this document useful (0 votes)
5 views1 page

Mailx Command Cheat Sheet

The document provides instructions for using mailx commands to manage email messages. It includes commands to save messages to files, send files to other users, display message headers only, read the current date and time, read mail from files other than the inbox, save composed messages to files, undelete all deleted messages, and delete specific messages by number. The document ends with exiting mailx and removing mail from the system mailbox.

Uploaded by

john
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Mailx Command Cheat Sheet

The document provides instructions for using mailx commands to manage email messages. It includes commands to save messages to files, send files to other users, display message headers only, read the current date and time, read mail from files other than the inbox, save composed messages to files, undelete all deleted messages, and delete specific messages by number. The document ends with exiting mailx and removing mail from the system mailbox.

Uploaded by

john
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

Exit without removing the mail from your system mailbox


exit

2. Save the message number 6 in mymail file


s6 mymail

3. Send myfile to the user ID number DU007


mv /usr/students/project/myfile /DU007/students/project
4. Display the message headers only
mailx -H

5. Read the current date and time and place it in your message
echo | ;date

6. Read your mail from another file, let's say mbox


Read f mbox
7. Save your composed message in mymail file
hold mymail
8. Undelete all the deleted messages

u*
9. Exit mailx and remove mail from your system mailbox
Quit

10. Delete message numbers 3 and 4


d34

You might also like