OsGate.org Logo

Previous Previous | Next Next

Split archive - split archive tgz txz file

System System

Date 12.02.2013

Visits 2329

To split an archive (for example a tar.bz2) we can use the "split" command. This can be useful when we have big files that for example the FAT32 file system is not able to manage.

bash-4.2# split -d -b 4000m doc.tar.bz2

bash-4.1# ls -lh
total 5.7G
-rw-r--r-- 1 root root 4.0G Jun 23 01:04 x00
-rw-r--r-- 1 root root 1.8G Jun 23 01:05 x01

The split command has as arguments "-d", that means to use numerical suffixes for splitted files and "-b" that is the maximal size of each chunk.