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



Leave a Reply

Browse

Photography

Projects

Pages

Calendar

September 2007
M T W T F S S
« Aug   Oct »
 12
3456789
10111213141516
17181920212223
24252627282930

Categories

www.flickr.com