Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to make a rar file(not tar or gzip) with several parts in linux shell, how can do that please?

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

I want this :

m.part1.rar 250mb
m.part2.rar 250mb  
share|improve this question
up vote 17 down vote accepted

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.

share|improve this answer
You can write volume size as Megabyte with M. I mean using rar -a -v250M ... – SuB Oct 17 '13 at 15:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .