Avant toute chose, si vous ne savez pas ce que contient un fichier : file <fichier>
Cette commande qui affiche le type du fichier, en fonction de son extension et non de son contenu !
- Extraire un tgz ou un tar.gz : tar zxvf <fichier.tgz>
- Décompresser un Z : uncompress <fichier.Z>
- Décompresser un gz : gzip -d <fichier.gz>
- Décompresser un bz2 : bzip2 -d <fichier.bz2>
- Extraire un tar : tar xvf <fichier.tar>
Et les combinaisons…
- Extraire un tar.bz2 : tar jxvf <fichier.tar.bz2>
- Extraire un zip : unzip <fichier.zip>
unzip appartient au package infozip
- Extraire un rpm : rpm2cpio <fichier.rpm> | cpio -mid
rpm2cpio appartient au package “rpm”
cpio appartient au package “cpio”
- Extraire un cpio : cpio -idmv < fichier.cpio
- Extraire un deb : ar xv <fichier.deb>
ar appartient au package binutils
- Extraire un cab Microsoft : cabextract <fichier.cab> lire la suite…