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>

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

Back to Mail directory