Search code examples
shellfileunixgzipphp-ziparchive

How to check the size of a file inside zipped folder in unix?


Is there a way to check the compressed size of files inside a zipped folder, and split files which are greater than 500 KB. The objective is to have a zipped file with multiple files which are less that 500KB each.


Solution

  • Info-ZIP's open-source zip comes with a utility "zipsplit" that does exactly what you are asking for.