Reaching out to others! Free & Open Source Software, Kannada, L10n, L18n Data Science, Cloud Computing & more…

Large Files ? Split them up….

General, linux, Technical | 0 comments

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

Related Articles

Related