shar
Verified for current stable LTS
Shar Command: Compress Archive Files
Use for compress archive files with Shar. Exact CLI syntax to compress archive files using Shar.
When to use this: Use for compress archive files with Shar.
Command Syntax
shar -C <xz> <path/to/file1 path/to/file2 ...> > <path/to/archive.sh> shar -C <xz> <path/to/file1 path/to/file2 ...> > <path/to/archive.sh> Live Command Builder
Final Command
shar -C <xz> <path/to/file1 path/to/file2 ...> > <path/to/archive.sh> Command Breakdown
-C- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to compress archive files using Shar.
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
Shar Command: Create Shell Archive
shar <path/to/file1 path/to/file2 ...> > <path/to/archive.sh> Shar Command: Create Shell Archive Default shar -V <path/to/file1 path/to/file2 ...> > <path/to/archive.sh> Shar Command: Include Name And Cut Mark In Archive shar -n "<My files>" -c <path/to/file1 path/to/file2 ...> > <path/to/archive.sh> Shar Command: Treat Files As Binary shar -B <path/to/file1 path/to/file2 ...> > <path/to/archive.sh> Shar Command: Treat Files As Text shar -T <path/to/file1 path/to/file2 ...> > <path/to/archive.sh> Alternative Approaches
Alternative tools for similar operation intents.
Tar Command: Create A Compressed Archive And Write It To A File Using The File Extension To Automatically Determine The Compression Program
tar caf <path/to/target.tar.xz> <path/to/file1 path/to/file2 ...> Bunzip2 Command: Decompress Bzip2 File bunzip2 <file> Bun Pm Pack Command: Set Gzip Compression Level bun pm pack --gzip-level 5 Tar Command: Extract A Compressed Archive File Into The Current Directory Verbosely tar xvf <path/to/source.tar[.gz|.bz2|.xz]> Tar Command: Extract A Compressed Archive File Into The Target Directory tar xf <path/to/source.tar[.gz|.bz2|.xz]> -C <path/to/directory>