Den den 5 februari 2013 klockan 09:02 skrev "Karl Thorén"
<karl.h.tho...@gmail.com>:
> 2013/2/4 Daniel Warhammar <dan...@warhammar.se>:
> > 'a' används bara vid skapandet av tar-filer och gör så att tar
automatiskt väljer komprimering utifrån vilken filändelse man valt.
> > Enligt tar-manualen så skall 'tar xf' räcka för att packa upp:
> >
> > Reading compressed archive is even simpler: you don't need to specify
any additional options as GNU tar recognizes its format automatically.
Thus, the following commands will list and extract the archive created in
previous example:
> >
> > # List the compressed archive
> > $ tar tf archive.tar.gz
> > # Extract the compressed archive
> > $ tar xf archive.tar.gz
> >
>
> Tackar den hade jag missat.
>
> Dock så funkar det inte på alla versioner av tar.
> Jag har en busybox version där man måste ange a för att läsa ett
> komprimerat arkiv...
>
> /Karl
> --
> "Karl Thorén" <karl.h.tho...@gmail.com>
> PGP-key: 836BD4C8
>
> --
> ubuntu-se mailing list
> ubuntu-se@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-se
Aha, sedär. Ja, Busybox verkar använda sin egen implementation av tar. Men
i den busybox jag har på telefonen så används 'a' specifikt för
lzma-komprimering.
Från Busyboxmanualen:
tar
tar -[czjaZxtvO] [-X FILE ] [-f TARFILE ] [-C DIR ] [ FILE (s)]...
Create, extract, or list files from a tar file
Options:
c Create
x Extract
t List
Archive format selection:
z Filter the archive through gzip
j Filter the archive through bzip2
a Filter the archive through lzma
Z Filter the archive through compress
File selection:
f Name of TARFILE or "-" for stdin
O Extract to stdout
exclude File to exclude
X File with names to exclude
C Change to directory DIR before operation
v Verbose
------
För att förtydliga då så kan jag nämna att det jag skrev i mitt tidigare
mail gäller GNU Tar, vilket borde vara vad som följer med en
ubuntuinstallation.
Mvh
Daniel
--
ubuntu-se mailing list
ubuntu-se@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-se