Original Article by Juan Valencia
Although some file archivers offer us the option of split the files, this can be easily accomplished with two commands: split
and cat
.
Splitting a file with split
split
just needs the size of the parts that we want to create, and the file that we want to split, e.g.:
split -b 1024 file_to_split.bin |
If this file is 6 kibibytes long, it will create 6 files of 1 kibibyte each, named xaa
, xab
, xac
, xad
, xae
and xaf
.