Single file 4G limit

  • FAT32 4 g
  • Baidu network disk exceeded the 4G limit

Single file split and merge

A single file, for example, archive.tar.gz

segmentation

split -b 3000M -d -a 1 archive.tar.gz archive.tar.gz.
Copy the code

Split common options:

-b, --bytes=SIZE Specifies the byte SIZE of each output file -d, --numeric suffixes replaces letter a with numeric suffixes, --suffix-length=N Specifies the suffix length to be N (the default is 2). SIZE can be an optional integer followed by one of the following units: KB 1000, K 1024, MB 1000 x 1000, M 1024 x 1024, and G, T, P, E, Z, and Y.Copy the code

merge

cat archive.tar.gz.* > archive.tar.gz
Copy the code

This command is used with the tar command

Compress and split

tar -zcvf - archive/ | split -b 3000M -d - archive.tar.gz.
Copy the code

Merge and unpack

cat archive.tar.gz.* | tar -zxv
Copy the code

Share practical tips and knowledge in Coding! Welcome to pay attention and grow together!