I want to gzip two or more files into one file, I checked this and this but both have files like: n1.txt, n2.txt, ... but my filenames are completely different, like: file.mp4, bar.txt, foo.jpeg and I want to gzip them all and put the output into one file. This didn't help too:
gzip -c file.mp4 > test.gz
gzip -c bar.txt >> test.gz
Do I have to tar them first?
And another question: In tar files, we can watch inner files without decompression using:
tar -tvf filename.tar
Is there anyway to do this with gzip or bzip2?