Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

How do I split a 7GB (movie) file into smaller files of (say) 1GB, and then (in another Ubuntu computer) integrate them to get the original file (using just bash commands)?

share|improve this question
up vote 32 down vote accepted
split -b 1G -d bigfile bigfile-part
cat bigfile-part* > bigfile
share|improve this answer
+1 best method. I usually like to check that everything worked by running 'md5sum bigfile' before and after. – scottl Nov 10 '10 at 3:15
it didn't want the -d – xxjjnn Jan 10 '14 at 15:07

To split the file into 1024MBs, using a terminal:

split --bytes=1024m original_filename /destination/path/prefix

To get the orifinal file:

cat /source/path/prefix* > original_filename
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.