Packing and unpacking files

From Linuxintro
Revision as of 16:38, 20 August 2011 by imported>ThorstenStaerk (Created page with "Here are the most practical commands to pack and unpack files in a console: = Unpacking = unrar x filename.rar unzip filename.zip tar xvf filename.tar ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Unpacking

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

Packing

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

See also