Difference between revisions of "Packing and unpacking files"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
m
Line 6: Line 6:
 
  [[unzip]] filename.zip
 
  [[unzip]] filename.zip
  
  [[bunzip2]] filename.bz2
+
  bunzip2 filename.bz2
  
 
  [[tar]] xvf filename.tar
 
  [[tar]] xvf filename.tar

Revision as of 14:22, 16 December 2011

Here are the most practical commands to pack and unpack files in a console:

Unpacking

unrar x filename.rar
unzip filename.zip
bunzip2 filename.bz2
tar xvf filename.tar
tar xvzf filename.tar.gz

Packing

tar cvzf targetfile.tar.gz /sourcedir
tar cvf targetfile.tar /sourcedir

See also