Zip & Unzip
Zip is a command-line tool used for creating and manipulating compressed archive files in Unix, Linux, and other Unix-like operating systems.
Compress
zip <output> <target1> <target2> ...
zip example.zip example1.txt example2.txt
# -r: recursive (zip folder)
zip -r example.zip ./example
Symbolic Links
We can store symbolic links in a zip file.
Decompress
List Files without Decompressings
To list files in a zip file without extracting, use -l
flag.
Unzip with Python
Also we can decompress an archived file using Python script.