Mar 31, 2010

Split and Join files Linux

First we need a compressed file,
tar -cvvzf file.tar.gz file.something
Now, we split the compressed file,
split -b 10M file.tar.gz "prefix_here"
(parts of 10 megas with the prefix "prefix_here")

To join the parts:
cat "prefix_here"* > file_joined.tar.gz 
And thats all! :)

No comments: