I have a large file (8GB for Example). How can I split it into multiple parts, let's say 3 equal parts, and after that how do I integrate them later?
There are several ways to accomplish this. Let's start with the basic ones.
Using the split and cat commands:
Lets says I have an image and its too big (10MB). All I do is:
and then to put it together I use cat:
Assuming am inside the folder where the image is:
if the image is inside a directory called images you can also do this:
If the image is inside the directory /home/cyrex/images you can do this:
(In all the cases above it will split
If you are splitting a Text file and want to split it by lines you can do this:
Which will split the text file in output files of 1000 lines each. This is another way to split a file and is mostly used for text files like logs, sql dumps, csv files, etc..
Then I merge them
This is one way. You can even change the size of the splitted pieces. Just change the part that says
Another way is the compress option in the gui of Nautilus. It gives you an option to split the file or files you want to compress into smaller megabyte sizes. Its simple and easy.
Yet another way is using 7z
Assuming you have an ISO image called
This will create 5MB size files from the
To extract just do
this way you extract the first file and 7z starts extracting from the following files in order. You can also do
which has the same effect here.
Number could be
To reassemble, use cat
Manuale pages will help to fill the details.
Gnome split? http://gnome-split.org/
HOZ - Hacha Open Zource v1.65 - http://hoz.sourceforge.net/
From the developer:
After installing, you can use the Hoz GUI by dropping
Is a popular freeware program to split and recombine files. The program is available on Windows, Linux and a variety of other platforms.
HJSplit for Linux is a freeware file splitter for Linux with full graphical user-interface. HJSplit supports file sizes of over 100 Gigabytes, Split, Join/Recombine, MD5 checksums, file-compare, "run without install" and the program is fully portable.
HJSplit for Linux does not need to be installed and it does not depend on any special libraries. Just extract the hjsplitlx.tar.gz archive into a directory of your choice and start the program from the Linux file manager or a terminal window. You might need to adjust the program's file permissions to 'executable'.
|show 1 more comment|
A free file split and merge utility developed in Java. It is a small size application that allows a user to split any type of file in smaller sizes in KB, MB or GB.
It is available for Linux as well as Windows.
WoodCutter offers 3 ways of merging back the original files. WoodCutter creates a merge file which can be processed by the WoodCutter application to join all the files back. In case the receiver of split files does not have WoodCutter installed, then also the original file can be obtained as WoodCutter also creates a batch file and a Shell script file to merge the files back. The batch file will be used in Windows platform and Shell script will be used in Linux platforms.