【Shell】Using tar to create compressed archives in multiple volumes.

Split and compress large files into volumes according to specified size.

tar -zcf - filename | split -b xxx - outfilename.tar.gz.

xxx is the desired size for each package. If only numbers are entered, the default unit is byte.

Enter numbers + K for kilobytes.

Enter numbers + M for megabytes.

Enter numbers + G for gigabytes.

And so on for T, P, E, Z, Y (who can actually use anything beyond T? {shocked face})

The decompression command is:

cat outfilename.tar.gz.* | tar -zx
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.