

Now i am going to zip satish.txt file test]# zip satish.zip satish.txtĪdding: satish.txt (deflated test]# ls -lh We can see the file sizes of sarath.txt, satish.txt and slashroot.txt are 12K,113K and 57K respectively. rw-r-r- 1 root root 57K Apr 19 05:26 slashroot.txt rw-r-r- 1 root root 12K Apr 19 05:26 sarath.txt Let's have a look on the size of these files. So now if you want to zip a file in Linux, you must have some files to zip.Here i have created three files satish.txt, sarath.txt and slashroot.txt just for testing purpose. How to zip a file using zip utility in Linux? Hence i would suggest to keep zip only to compress files with textual content.

However if you compress some big video/audio files with zip or gzip, you will not get better results. Hence you can compress your large log file for example, and achieve a good compression ratio. Zip,Gzip etc gives a wonderful compression ratio when used with simple text files. It can be used by different compression level and each level has it's own benefit and requirement which depends up on clients requirement.Īn important fact to note here about zip command is that, your compression ration always depends upon the type of files that you are compressing. Zip utility is to compress or you can say zip a file or files or a directory but what matters is it's compression ratio. We can see how zip utility is used and how it's beneficial to use as well as how to secure your zip files and what precautions you should take while zipping or while providing security to your zip files.To enhance security of zip files i have also included encryption and decryption concept a bit. Zip utility is used to combine as well as compress files in Linux.In this article i have included the uses of zip command and how to secure zip files.As i am going to discuss zip related security topics here so i have included security related loopholes too and also the trick or idea to remove such loopholes in detail with examples.
