tar
Verified for v1.35 LTS
Tar Command: Extract Files Matching Pattern From Archive
Use for extract files matching pattern from archive with Tar. Exact CLI syntax to extract files matching pattern from archive using Tar.
When to use this: Use for extract files matching pattern from archive with Tar.
Command Syntax
tar xf <path/to/source.tar> --wildcards "<*.html>" tar xf <path/to/source.tar> --wildcards "<*.html>" Command Breakdown
--wildcards- Wildcards
- Enables shell-style wildcard matching for archive members.
FAQ
Purpose: Exact syntax to extract files matching pattern from archive using Tar.
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
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 ...> Tar Command: Create A Gzipped Archive And Write It To A File tar czf <path/to/target.tar.gz> <path/to/file1 path/to/file2 ...> Tar Command: Create A Gzipped Archive From A Directory Using Relative Paths tar czf <path/to/target.tar.gz> -C <path/to/directory> . Tar Command: Create An Archive And Write It To A File tar cf <path/to/target.tar> <path/to/file1 path/to/file2 ...> Tar Command: Create Archive Write File tar cf <path/to/target.tar> <path/to/file1 path/to/file2 ...> Alternative Approaches
Alternative tools for similar operation intents.
7z Command: Extract Archive Preserve Directory Structure
7z x <path/to/archive.7z> 7za Command: Extract Archive Preserving Original Structure 7za x <path/to/archive.7z> 7zr Command: Extract An Archive To Stdout 7zr x <path/to/archive.7z> -so Cpio Command: Extract Files From Archive Cpio Verbose cpio < <archive.cpio> -idv 7za Command: Extract Archive To Stdout 7za x <path/to/archive.7z> -so