7 September 2007
Split large files in Linux
Posted by Mikhail Esteves under: LAMP; Tips .
Use the split command to do this:
split --bytes=1024m bigfile.tar small_file_
That command will split bigfile.tar into files that are 1024 MB in size (1GB) and name the various parts small_file_aa, small_file_ab, etc. You can specify b for bytes, k for Kilobytes and m for Megabytes to specify sizes.
To join the files back together on Linux:
cat small_file_* >joined_file.tar
Similarly to join the split files on a Windows machine, use the copy command:
copy /b small_file_* joined_file.tar