tar -tf filename.tar
folder1/file
folder1/name
[...]
I'd like to extract file and name to, folder2. Can this be done as a one-liner?
I'd like to extract file and name to, folder2. Can this be done as a one-liner? |
|||
|
|
|
Use |
|||||
|
|
You can also use the For example, this is how I extract a Linux tarball to a new directory so I can apply a patch:
|
|||
|
|