Search

Tuesday 2 February 2010

Linux - split and rejoin large files

In Linux it is possible to split big files, say ISO's into smaller, user defined chunks. For example, to split a 5Gb ISO into 250Mb chunks, open a bash terminal and type:


split -b250m filename.ISO iso-split


When run the filename>ISO file is split into 250 MegaByte chunks and iso-split is prefix of generated file(s).
To restore the file(s) back into one chunk type:


cat iso-split* > NEWFILENAME 


If you need to rejoin the file in windows then go to a command prompt and type:


type filepart1 filepart2 > filefull


Where filepart1, 2 etc are the chunks made by the linux split command

No comments:

Post a Comment