TAR gives error – tar: You may not specify more than one `-Acdtrux’ or `–test-label’ option

tar

I am trying to make a tar ball and its throwing the error,

persis1@takwa228-DEV $ tar -pcrvzf ALPHA.tar.gz https-ALPHA

tar: You may not specify more than one `-Acdtrux' or `--test-label' option

Try `tar --help' or `tar --usage' for more information.

Best Answer

As the message says, you can't combine c and r; the former means "create an archive", the latter "append to an archive", so they can't be used simultaneously.

You can simply do

tar cpvzf ALPHA.tar.gz https-ALPHA
Related Question