Zip is a standard compression data what the most popular. With data compression, data size will be smaller so that the use of storage media or transfer data will be more efficient.
ZIP files can decompress with a variety of free software or using command line. In this article, we will explain how to compress and decompress using command line.
If you wanna zip all files in directory via command line Terminal. You can use this command line:
zip -r <zip file>.zip <directory name>
Option -r is travel the directory structure recursively. For Example I will compress directory name: tutonux in a zip archive named tutonux.zip, so use the following command:
zip -r tutonux.zip tutonux
In this case, all the files and directories in tutonux are saved in a zip archive named tutonux.zip, including files with names starting with ".", since the recursion does not use the shell's file-name subtitution mechanism.
If you wanna zip multi files to a zip file, how to do it? This format command line:
zip -r <zip file>.zip <filename1> <filename2> <filename3>
No comments :
Post a Comment