File Compression

From ReduxWiki

(Redirected from How to File Compression)
Jump to: navigation, search

Contents

[edit] tar.gz file(s) within a directory

tar -czvf filename.tar.gz *


[edit] Uncompress tar.gz

tar -zxpf <file.tar.gz>


[edit] Uncompress .tar

tar -xpf <file.tar.gz>


[edit] Uncompress .gz

gunzip <file>


[edit] Splitting .tar.gz (1GB)

split -b1024M filename.tar.gz splitfile.tar.gz.

OR

split -b1024M filename.tar.gz /newdir/splitfile.tar.gz.


[edit] Rejoining .tar.gz Files

Linux
cat file01 file02 file03
Windows > Command Prompt
copy /b file02 + file02 +file03 fullfile.tar.gz

You may also attempt a GUI such as WinRar


Image:Tip.png Back to How To Documents
Personal tools