![]() # around 58%, the archive file size now is 2763 Bytes vs 6232 Bytes # The result archive file is a compressed file with a compression ratio ![]() rw-r-r- 1 sfcompy staff 2763 Jul 13 15:20 myreport.zip # To archive and compress 'report.txt' file: # myfile: is the file you like to archive # archivename.zip: is the name of the archive file # The simplified version for this example is: zip archivename.zip myfile # To archive the text file we can use the following command format: ![]() # The image file 'mypic.png' size is 126340 Bytes (126KB)īash> ls 1 sfcompy staff 126340 Mar 23 13:43 1 sfcompy staff 6232 Jul 3 14:25 report.txt # The text file 'report.txt' size is 6232 Bytes (6.232KB) # simple text file and the second file is an image # one or more files, we will use two types of files for that, one is a ![]() # To demonstrate how to use the ZIP command to archive and compress Another important reason why we may benefits from using the ZIP tool, its because it is a Cross-Platform tool, means its been supported by most of the popular Operating System, you can extract the same archive Zip file in Windows, Mac’s or Linux machines without the need to install extra software – its a build-in tool #. ![]() Two main reasons to use the ZIP command, the first reason its because the ZIP command is a build-in archive tool that can be found in every MacOS machines, the second reason as you already probably knows, its because that the ZIP command its also a tool to compress the information that the files carries, means the single archive file will consume less storage space then the total storage space that the all files will consume all together as individuals files, of course their are many other data compression method that are relatively more efficient and will compress better for various type of files(such as audio\video.etc), but the ZIP algorithm over the years proof its efficiency and simplicity to archives and compress files and data. Many times you like to group files and folders into a single file(archive), The motivation for that is sometimes because you like efficiently (smaller space, fast upload) to send the group of files and folder over the internet (mail, ftp.etc)as a single file, in other cases you just want to upload the group of files and folder to a web-server or a cloud storage in a single operation, you can find many other methods and technics how to do so, but one of the most simple and the efficient ways is by using the traditional ZIP command ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |