You Asked: How Do I Send a File as an Attachment in Linux?
Contents How Do I Attach a File to an Email in Linux? Use the New Attachment Switch (-A) in Mailx to Send Attachments with the Mail. the -a Options Is Easier...
Contents
How do I attach a file to an email in Linux?
Use the new attachment switch (-a) in mailx to send attachments with the mail. The -a options is easier to use that the uuencode command. The above command will print a new blank line. Type the body of the message here and press [ctrl] + [d] to send.
How send attachment with uuencode Linux?
To send an attachment from the email, use uuencode command. On RedHat (and related distributions), uuencode is part of the sharutils package. So, install the sharutils as shown below. Once you’ve confirmed that you have uuencode, send the email with an attachment as shown below.