This doesn't work:
tar xf /tmp/foo.tar.gz foo/bar
tar: foo/bar: Not found in archive
It's not obvious to me what would do this beyond extracting it in place and moving the files over.
|
This doesn't work:
It's not obvious to me what would do this beyond extracting it in place and moving the files over. |
|||
|
|
|
From
i.e, |
|||||
|
|
if you want to extract an tar archive elsewhere just cd to the destination directory and untar it there:
The command you've used would search the file |
|||
|
|
|
Doing:
would do the job. Basically, what is does is spawning a new shell (the parentheses), in this subshell, change directory to You can change the |
|||||
|