Monday, March 23, 2020

.tar.xz

Decompress: tar xJf FOOBAR.tar.xz
Compress: tar cfJ archive.tar.xz files

Wednesday, March 18, 2020

.tar.tgz

Decompress: tar zxvf FileName.tar.tgz
Compress: tar zcvf FileName.tar.tgz FileName

.rar

Decompress: unrar e file.rar
Decompress: rar e file.rar
Compress: rar a FileName.rar DirName

.zip

Decompress (in current folder): unzip test.zip
Decompress (in target folder): unzip test.zip -d /tmp
Compress: zip -q -r foo.zip /bar

.7z

Decompress: 7z e file.7z
Compress: 7z a OutputFile files_to_compress

.tar.Z

Decompress tar.Z: tar –xZvf file.tar.Z
Compress tar.Z: tar –cZf foo.tar.Z *.bar

————–

Decompress tar: tar –xvf file.tar
Decompress tar.bz2: tar -xjvf file.tar.bz2
Decompress tar.gz: tar -xzvf file.tar.gz

Compress tar: tar –cvf foo.tar *.bar
Compress tar.bz2: tar –cjf foo.tar.bz2 *.bar
Compress tar.gz: tar –czf foo.tar.gz *.bar

.tar.bz2

Decompress tar.bz2: tar -xjvf file.tar.bz2
Compress tar.bz2: tar –cjf foo.tar.bz2 *.bar

————–

Decompress tar: tar –xvf file.tar
Decompress tar.gz: tar -xzvf file.tar.gz
Decompress tar.Z: tar –xZvf file.tar.Z

Compress tar: tar –cvf foo.tar *.bar
Compress tar.gz: tar –czf foo.tar.gz *.bar
Compress tar.Z: tar –cZf foo.tar.Z *.bar

.tar.gz

Decompress tar.gz: tar -xzvf file.tar.gz
Compress tar.gz: tar –czf foo.tar.gz *.bar

————–

Decompress tar: tar –xvf file.tar
Decompress tar.bz2: tar -xjvf file.tar.bz2
Decompress tar.Z: tar –xZvf file.tar.Z

Compress tar: tar –cvf foo.tar *.bar
Compress tar.bz2: tar –cjf foo.tar.bz2 *.bar
Compress tar.Z: tar –cZf foo.tar.Z *.bar

.tar

Decompress tar: tar –xvf file.tar
Compress tar: tar –cvf foo.tar *.bar

————–

Decompress tar.gz: tar -xzvf file.tar.gz
Decompress tar.bz2: tar -xjvf file.tar.bz2
Decompress tar.Z: tar –xZvf file.tar.Z

Compress tar.gz: tar –czf foo.tar.gz *.bar
Compress tar.bz2: tar –cjf foo.tar.bz2 *.bar
Compress tar.Z: tar –cZf foo.tar.Z *.bar