Splitting And Rejoining Files

Most distributable media (dvd's, thumb drives, etc) has enough space on them for what you need however its nice to be able to split up larger files especially if it comes to downloading large files on a unsteady internet connection. You can use the built in split and join tools to break up large files then rejoin them together to get back the origional large file(s)

Splitting The File

For this example I will use MYISO.ISO as an example. You can specify spliting a file by byte, kilobyte, megabyte,


split -b 1024 MYISO.ISO myiso_split_ Split the file in 1024 byte chunks
split -b 1KB MYISO.ISO myiso_split_ Split the file in 1 kilobyte chunks
split -b 10MB MYISO.ISO myiso_split_ Split the file in 10 megabyte chunks
split -b 1GB MYISO.ISO myiso_split_ Split the file in 1 gigabyte chunks


In All examples all split files will have the names myiso_split_aa, myiso_split_ab, myiso_split_ac, myiso_split_ad, etc etc


You can leave off the "myiso_split_" line in the command, which will split the files with just aa, ab, ac, etc etc etc. However I find it more easier to read if you have a prefix. Use your own judgement.


Joining The File

cat myiso_split_?? > MYISO.ISO