Search This Blog

Monday, November 14, 2022

[Ubuntu] Split large file into smaller pieces

Split file into per file 1024MB

split -b 1024M -d foo.tar.xz foo.tar.xz-

foo.tar.xz-00    1024MB

foo.tar.xz-01    1024MB

...


Merge pieces to large file

cat foo.tar.xz-* > foo.tar.xz


No comments: