Solved Tar eXtraction

I'm trying to extract a specific file/directory from a tar archive to particular directory using the following command

tar xf abc.iso abc -C /xyz

expecting that the abc directory in the abc.iso will be extracted to the /xyz/ directory, which does exist, but get these errors

tar: -C: Not found in archive
tar: /xyz: Not found in archive

What am I doing wrong?
 
Wrong order of arguments.

Code:
tar xf abc.iso -C /xyz abc

Code:
     tar {-t | -x} [options] [patterns]
Options have to go before the patterns.
 
Back
Top