Split a large file into smaller files and then integrate them to get the original file

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)?

Asked By: Sid


To split:

split -b 1G -d bigfile bigfile-part

To join:

cat bigfile-part* > bigfile
Answered By: JanC

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

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

To get the original file:

cat /source/path/prefix* > original_filename
Answered By: João Pinto
Categories: Answers Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.