file compression

home button  back button
tar

tar xvf filename.tar

.tar.gz

tar xzvf filename.tar.gz

.tgz

tar xvzf filename.tgz

.tar.gz2

You probably mean .tar.bz2
.tar.bz

tar xjvf filename.tar.bz

.tbz

tar xjvf filename.tbz

.tar.bz2

tar xjvf filename.tar.bz2

.tar.Z

zcat file.tar.Z | tar xvf -

.tar.xz

lzcat filename.tar.xz | tar xvf -

.gz

gunzip filename.gz

.gz2

You probably mean .bz2
.bz

bunzip filename.bz

.bz2

bunzip2 filename.bz2

.Z

uncompress filename.Z

.xz

unlzma filename.xz

.zip

unzip filename.zip

.7z

7z x filename.7z

.rar

unrar x filename.rar

.dmg

This isn?t a file that can be ?extracted? but you can mount and save the files using:

mkdir /mnt/source
mount -o loop -t hfs filename.dmg /mnt/source
cp /mnt/source/* /home/username/destination/

.img, .dd

These aren?t files that can be ?extracted? but you can mount and save the files using:

mkdir /mnt/source
mount -o loop -t iso9660 filename.img /mnt/source
cp /mnt/source/* /home/username/destination/

Copied from The Linux Daily web site

This is designed to be an accessible website, please report any problems. by submitting this form.



Valid XHTML 1.0 Transitional link to w3.org validator Valid CSS link to w3.org validator the W3C Link Checker

See the PHP source of this page, here.

Copyright 1991-2011 and hand coded by James Lockie.
Last updated May 20 2012.