Hi all 🙂
Today we are going to see how to split large files to equal parts and rejoin them in Linux Operating System.
We use the split program to split the files to parts.
$split [OPTION]... [INPUT [PREFIX]]
This is the syntax of the split command.
Now let us consider a file named Fedora_13_i386_DVD.iso and we want to split into equal parts containing 700MB each.So,
$split --bytes=700M Fedora_13_i386_DVD.iso This will create files with alphabetic suffix like xaa,xab,xac etc.. $split --bytes=700M Fedora_13_i386_DVD.iso -d This will create files with numerical suffix likd x00,x01,x02 etc.. $split --bytes=700M Fedora_13_i386_DVD.iso -d ./part This will create files with numerical suffix like part00 part01 etc..
Now to rejoin these splitted files copy all the files to a single folder and we can use the cat command to join these files.
cat part* > Fedora_13_i386_DVD.iso here replace part* with the pattern of file names. Now this will bring back the original file. :)
Enjoy Splitting 🙂