Comment by BeepInABox
Comment by BeepInABox a day ago
For anyone curious, unless you are running a 'tar' binary from the stone ages, just skip the gunzip and cat invocations. Replace .gz with .xz or other well known file ending for different compression.
Examples:
tar -cf archive.tar.gz foo bar # Create archive.tar.gz from files foo and bar.
tar -tvf archive.tar.gz # List all files in archive.tar.gz verbosely.
tar -xf archive.tar.gz # Extract all files from archive.tar.gz
> tar -cf archive.tar.gz foo bar
This will create an uncompressed .tar with the wrong name. You need a z option to specify gzip.