The following is the GNU All-permissive License as recommended in

Copyright (C) 2024 Free Software Foundation

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.

Contributions are welcome. See

split file into chunks

Split file into 16 MB chunks (useful for emails):

split -b 16M my.tgz my.tgz.part-

You can also do it by number of lines with -l.

Be careful not to pass a number like 16 to the -b parameter, otherwise it will split your file into millions of 16 byte files. To recover from that:

for x in my.tgz.part-* ; do rm $x ; done