Tar: too cool!

GNU Tar

Banale, ma interessante:
Recent version of tar autodetect the compression for bzip2 and gzip, which means you can use tar xf linux-2.6.25.tar.bz. Not only that, you can also tell it to guess compression upon creation of archives: tar caf foo.tbz2 /etc. Nifty. Doesn't work for lzma, though, which might be due to the recent change in file format. file doesn't recognize the files, either.

ercoppa@gentoo ~/Desktop $ ls
baselayout-1.12.11.1.tar.bz2 liferea-1.4.15.tar.gz
ercoppa@gentoo ~/Desktop $ tar xf baselayout-1.12.11.1.tar.bz2
ercoppa@gentoo ~/Desktop $ tar xf liferea-1.4.15.tar.gz
ercoppa@gentoo ~/Desktop $ rm baselayout-1.12.11.1.tar.bz2
ercoppa@gentoo ~/Desktop $ rm liferea-1.4.15.tar.gz
ercoppa@gentoo ~/Desktop $ tar cf baselayout-1.12.11.1.tar.bz2 baselayout-1.12.11.1
ercoppa@gentoo ~/Desktop $ tar cf liferea-1.4.15.tar.gz liferea-1.4.15

P.s. devo aggiornare una certa guida (la parte sugli archivi andrebbe ripensata, fa un po' schifo) chi io


• 5 commenti • Inserisci un commento • Pubblicato il 9 maggio 2008 •
1. regi - 11 maggio 2008 @ 14:51
mi piace
2. ercoppa - 11 maggio 2008 @ 18:40
Cosa? O_o
3. pctips - 11 maggio 2008 @ 23:52
Sarà che sono un vecchio nostalgico, ma questa novità potevano risparmiarsela :(
4. _16443 - 12 maggio 2008 @ 4:28
>Sarà che sono un vecchio nostalgico, ma questa novità potevano risparmiarsela :(

Allora te ne dò una più carina:
>Beginning with E2fsprogs-1.40.5, the command mke2fs can now produce filesystems with 256-byte inodes. Grub cannot read such filesystems by default, so if you create such a file system with the host machine's newer E2fsprogs, you will see an error when running Grub.
>
:D
5. ercoppa - 12 maggio 2008 @ 20:17
>ma questa novità potevano risparmiarsela
Nessuno ti obbliga ad usarla :P

>una più carina
Veramente stupenda, sicuramente semplifica la vita degli utenti.

Inserisci un commento Info sui commenti

Nome:      Email:

Sito web / Pagina personale / Blog: