Linux Today: Linux News On Internet Time.





More on LinuxToday


Split and merge files from the command line

Jul 21, 2011, 11:00 (0 Talkback[s])

WEBINAR:
On-Demand

How to Help Your Business Become an AI Early Adopter


[ Thanks to linuxaria for this link. ]

Although some file archivers offer us the option of split the files, this can be easily accomplished with two commands: split and cat.

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.

Complete Story

Related Stories: