Dealing with large files on servers in which you have upload limits etc is always painful. Linux lets us split the files quickly with its split command as follows :

split --bytes=512m original_file.zip file_chunk_

That command will split original_file.zip into files that are 512 MB in size and name the various parts file_chunk_aa, file_chunk_ab, etc. If you want to the file to be split in bytes you can specify b, k can be used for Kilobytes and m for Megabytes.

Its also easy to join these files back in one piece

To join the files back together on Linux issue the following command:

cat file_chunk_* > complete_file.zip

You can even join these files on windows by using the copy command as follows :

copy /b small_file_* joined_file.tar

Tags:

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">