Originally Posted by EricChiang
tar -cvpf - *|compress > file_name.tar.Z
zcat file_name.tar.Z|tar -xvpf -
Above 2 commands (tar & untar) are quite usful to handle my job. Company has plan to switch unix plat form from AIX/Solaris to Linux in the near future.
How to make above tar & untar commands work in Lieux? The tar comand above includes sub-folders in a huge main folder and includes all hidden files on all sub-folders. Your help is highly appreciate.
If you're already a Unix administrator, you are no doubt familiar with the man pages; have you read the man page on the Linux tar command??
From what you posted, it seems like all you're after is the ability to compress/decompress the tar files...so:
filter the archive through bzip2
filter the archive through xz
filter the archive through gzip
...which gives you THREE options for file compress. So just adding a 'z' to your existing tar command will do it on Linux, no need for piping to compress. Same for uncompressing