Exemple de comment décompresser tous les fichiers tar d'un répertoire:
Table des matières
Décompresser un fichier
Pour décompresser une seule archive tar :
tar -xf filename.tar
option de commande tar
Options:-c : Creates Archive-x : Extract the archive-f : creates archive with given filename-t : displays or lists files in archived file-u : archives and adds to an existing archive file-v : Displays Verbose Information-A : Concatenates the archive files-z : zip, tells tar command that creates tar file using gzip-j : filter archive tar file using tbzip-W : Verify a archive file-r : update or add file or directory in already existed .tar file
Décompressez tous les fichiers tar d'un répertoire
Pour décompresser tous les fichiers d'archive tar, une solution consiste à créer une boucle. Lancez un terminal et entrez (en bash shell ici):
for FILE in *; do tar -xf $FILE; done
Références
| Liens | Site |
|---|---|
| How to untar all tar-files in a directory? | linuxquestions |
| How To Loop Through Files in a Directory | digitalocean |
| Mac OS X users | magma.maths.usyd.edu |
| Compress and uncompress file archives in Terminal on Mac | support.apple.com |
