Home > gzip, howto, tar > Tar and gzip when you do not have the -z tar switch

Tar and gzip when you do not have the -z tar switch

April 23rd, 2008 grady

Sometimes tar does not have the -z switch depending on the system os you are on. In those cases, you can still do the tar.gz all in one command by using the format:

tar cvf – the_path_or_filelist | gzip > your.tar.gz

Categories: gzip, howto, tar Tags:
Comments are closed.