tar
Verified for v1.35 LTS
Tar Commands
Tar command syntax with verified terminal examples.
Commands
8 commands for Tar
tar HTTP
Tar Command: Create An Archive And Write It To A File
tar cf <path/to/target.tar> <path/to/file1 path/to/file2 ...> tar HTTP
Tar Command: Create A Gzipped Archive From A Directory Using Relative Paths
tar czf <path/to/target.tar.gz> -C <path/to/directory> . tar HTTP
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 Archive
Tar Command: Extract Files Matching A Pattern From An Archive File
tar xf <path/to/source.tar> --wildcards "<*.html>" tar HTTP
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 Archive
Tar Command: Extract A Compressed Archive File Into The Current Directory Verbosely
tar xvf <path/to/source.tar[.gz|.bz2|.xz]> tar HTTP
Tar Command: Extract A Compressed Archive File Into The Target Directory
tar xf <path/to/source.tar[.gz|.bz2|.xz]> -C <path/to/directory> tar Archive
Tar Command: List The Contents Of A Tar File Verbosely
tar tvf <path/to/source.tar> Suggest a Tar Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Tar workflows.
Verified version: v1.35 LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.