Compress with RAR and split into multiple files
You have a large file that you want to send to a friend. One possible way is to upload it to your Dropbox folder and when he got it you remove it. If the file is too big, split it into multiple smaller files. If your friend uses Windows, you should compress the file with ZIP or RAR. Here I show you how to do it with RAR.
rar a -m5 -v10m myarchive movie.avi
It will compress
movie.avi and split it into 10 MB chunks (
-v10m), using the best compression ratio (
-m5). In the case of an AVI file it won’t help much, so here you could use
-m0 too, which means no compression at all. The default is
-m3 by the way. Output:
If you prefer the traditional names (
myarchive.r01, …), add the
-vn switch too.
rar x myarchive.part1.rar
This entry is based on this post: http://linux.byexamples.com/archives/226/compress-to-multiple-volume-rar/.