I have a folder with files, and at the click of a button from an application, I would like to create a zipped version of the folder. I understand that it’s possible to create a tar.gz version on a UNIX system by passing in the command exec(tar -cvf foldername destination_filename).
Question: Is it possible to create a zipped file on a UNIX system? If it is possible, what’s the logic/command behind it?
Most *nix systems will support the following commnad: