How to split zip files into parts with specific size in linux command
To split/archive files into a zip file with multiple parts of same size, you can use file compression software such as WinZip or 7-Zip. You can use the "zip" command to do the same in Linux.
The above command will recursively compress all the files in the "source-files" directory into 5mb zip files. If the "zip" command is not installed in your system then you can follow the below steps to install the "zip" command.
Split zip files into parts with a specific size
zip -r -s 5m compressed-files.zip source-files/
The above command will recursively compress all the files in the "source-files" directory into 5mb zip files. If the "zip" command is not installed in your system then you can follow the below steps to install the "zip" command.
Install zip command in Linux
sudo apt install zip
Check the zip command version
zip -v
Comments (0)