How do I rar a file into several parts in Linux?

21

10

I want to make a rar file(not tar or gzip) with several parts in linux shell, how is it possible ?

for example my file is : m.avi - 500mb

I want this :

m.part1.rar 250mb
m.part2.rar 250mb  

Freeman

Posted 2012-03-04T17:12:26.210

Reputation: 673

Answers

32

Ah I misunderstood, for parting rar files you have to do the following. First make sure you have rar installed. Then use the following command:

rar a -v250000k /path/m.splitted.rar /path/m.avi

a for append, -v for the size in kilobytes. This would create /path/m.splitted.part001.rar, /path/m.splitted.part002.rar, etc.

If you want the old naming scheme (m.splitted.rar as the first file, then m.splitted.r01, m.splitted.r02, etc.) you should use -vn instead of -v. See /usr/share/doc/rar/rar.txt for more information.

xatr0z

Posted 2012-03-04T17:12:26.210

Reputation: 609

1This worked for me rar a -m5 -v5M -R myarchive.rar /home/ – Asif Raza – 2018-03-29T03:12:55.147

11You can write volume size as Megabyte with M. I mean using rar -a -v250M ... – SuB – 2013-10-17T15:16:02.073