$ split ?-bytes=600M fagotto.tar.gz fagottini

First we provide to compress files that interest us with

tar -cvvzf fagotto.tar.gz /percorso/dovestanno/ifile/

and then divided into "slices" of 600 Mb each with

split ?-bytes=600M fagotto.tar.gz fagottini

To split huge file into DVD+R size chunks for burning

split -b 4700000000 file.img.gz file.img.gz

To reconstitute use

cat file.img.gz.aa file.img.gz.ab ... > file.img.gz

View this command to comment, vote or add to favourites
View all commands by 0disse0

commandlinefu.com

by David Winterbottom (codeinthehole.com)


Tags: