View previous topic :: View next topic |
Author |
Message |
Gentoopc Apprentice
Joined: 25 Dec 2017 Posts: 296
|
Posted: Sat Jan 06, 2018 2:11 pm Post subject: tar |
|
|
hi)
how to open the xz file i tested all the keys xvf zaf zvf xvjpf |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30909 Location: here
|
Posted: Sat Jan 06, 2018 2:13 pm Post subject: |
|
|
If is only a xz file without tar use unxz command _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Gentoopc Apprentice
Joined: 25 Dec 2017 Posts: 296
|
Posted: Sat Jan 06, 2018 2:24 pm Post subject: |
|
|
ок |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Sat Jan 06, 2018 2:29 pm Post subject: Re: tar |
|
|
Gentoopc wrote: | how to open the xz file i tested all the keys xvf zaf zvf xvjpf |
Code: | $ man tar
-J, --xz
Filter the archive through xz(1) |
you need to use it like so
Code: | $ tar xvJf <archivefile(s)> |
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30909 Location: here
|
Posted: Sat Jan 06, 2018 2:40 pm Post subject: Re: tar |
|
|
josephg wrote: | Gentoopc wrote: | how to open the xz file i tested all the keys xvf zaf zvf xvjpf |
Code: | $ man tar
-J, --xz
Filter the archive through xz(1) |
you need to use it like so
Code: | $ tar xvJf <archivefile(s)> |
|
But if you don't specify the compression, tar automatically choose correct one _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Sat Jan 06, 2018 2:45 pm Post subject: Re: tar |
|
|
fedeliallalinea wrote: | josephg wrote: | Gentoopc wrote: | how to open the xz file i tested all the keys xvf zaf zvf xvjpf |
Code: | $ man tar
-J, --xz
Filter the archive through xz(1) |
you need to use it like so
Code: | $ tar xvJf <archivefile(s)> |
|
But if you don't specify the compression, tar automatically choose correct one | it will also bomb out if what is compressed isn't a tar file.
The OP title is about tar but is asking about xz. How do we know it is a tar.xz? _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Sat Jan 06, 2018 3:02 pm Post subject: Re: tar |
|
|
Naib wrote: | The OP title is about tar but is asking about xz. How do we know it is a tar.xz? |
my bad.. i assumed the file was tar.xz based on his title and description where he asks about various untar options
Last edited by josephg on Sat Jan 06, 2018 3:08 pm; edited 1 time in total |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Jan 06, 2018 3:03 pm Post subject: |
|
|
I would myself guess that because OP cite he has tried tar with "xvf" and this would work on any tar compression.
And OP also speak about a .xz and not tar.xz, i think fedeliallalinea has the most logical answer : op is certainly trying to use tar on an xz file. |
|
Back to top |
|
|
|