mail
Verified for current stable LTS
Mail Command: Send Tar Gz File Attachment
Use for send tar gz file attachment with Mail. Exact CLI syntax to send tar gz file attachment using Mail.
When to use this: Use for send tar gz file attachment with Mail.
Command Syntax
tar cvzf - <path/to/directory1 path/to/directory2> | uuencode <data.tar.gz> | mail --subject "<subject_line>" <to_user@example.com> tar cvzf - <path/to/directory1 path/to/directory2> | uuencode <data.tar.gz> | mail --subject "<subject_line>" <to_user@example.com> Command Breakdown
-- Command Option
- Tool-specific option used by this command invocation.
--subject- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to send tar gz file attachment using Mail.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Mail Command: Display Mail Help
mail -h Mail Command: Open Interactive Mail Prompt mail Mail Command: Send Email With File Content mail < <path/to/file.txt> --subject "<$HOSTNAME filename.txt>" <to_user@example.com> Mail Command: Send Email With Subject And Cc mail --subject "<subject line>" <to_user@example.com> --cc "<cc_email_address>" FFmpeg Command: Combine Images Into Video Or Gif ffmpeg -i <path/to/frame_%d.jpg> -f image2 <video.mpg|video.gif>