Difference between revisions of "Unpack"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
  
 
Here are file formats and how to unpack them:
 
Here are file formats and how to unpack them:
 
* .sda : unzip ''file''.sda
 
* .tar : tar xvf ''file''.tar
 
* .tar.gz : tar xvzf ''file''.tar
 
* .tgz : tar xvzf ''file''.tgz
 
* .zip : unzip ''file''.zip
 
* .zipx : See [[unpack .zipx files]]
 
  
 
{| class="wikitable sortable" border=1
 
{| class="wikitable sortable" border=1
 
! extension !! type !! how to extract
 
! extension !! type !! how to extract
 +
|-
 +
| .7z || 7zip || install 7z, e.g. for SUSE Linux: yast -i p7zip; run it: 7z x ''file.7z''
 
|-
 
|-
 
| .bz2 || bunzip2 || bunzip2 ''file''.bz2
 
| .bz2 || bunzip2 || bunzip2 ''file''.bz2
Line 23: Line 18:
 
| .sda || ? || unzip ''file''.sda
 
| .sda || ? || unzip ''file''.sda
 
|-
 
|-
| * .tar || ||  tar xvf ''file''.tar
+
| .tar || tar archive ||  tar xvf ''file''.tar
 
|-
 
|-
| * .tar.gz || || tar xvzf ''file''.tar
+
| .tar.gz || gzipped tar archive || tar xvzf ''file''.tar
 
|-
 
|-
| * .tgz || || tar xvzf ''file''.tgz
+
| .tgz || gzipped tar archive || tar xvzf ''file''.tgz
 
|-
 
|-
| * .zip || || unzip ''file''.zip
+
| .zip || zip archive || unzip ''file''.zip
 
|-
 
|-
| * .zipx || || See [[unpack .zipx files]]
+
| .zipx || new WinZip archive || See [[unpack .zipx files]]
 
|}
 
|}
 +
 +
= See also =
 +
* [[open files]]

Latest revision as of 07:06, 17 August 2014

To unpack files under Linux, you need to know what file format your file is. Frequently used are the .zip, .tar and .tar.gz formats.

If you want to be sure about the file format, open a console and use the file command like this:

# file Blue-1.7.tar
Blue-1.7.tar: POSIX tar archive (GNU)

Here are file formats and how to unpack them:

extension type how to extract
.7z 7zip install 7z, e.g. for SUSE Linux: yast -i p7zip; run it: 7z x file.7z
.bz2 bunzip2 bunzip2 file.bz2
.rar rar unrar x file.rar
.sda ? unzip file.sda
.tar tar archive tar xvf file.tar
.tar.gz gzipped tar archive tar xvzf file.tar
.tgz gzipped tar archive tar xvzf file.tgz
.zip zip archive unzip file.zip
.zipx new WinZip archive See unpack .zipx files

See also