Contents
Preamble
- Operating system: Unix-based (including macOS and Linux)
- Date: June 2, 2022
zip compression
This is how you zip a directory using the terminal:
*zip -r OUTPUT.zip INPUT*
Where:
- OUTPUT: Name of the output file (it can be a path)
- INPUT: Name of the input directory (it can be a path)
gzip compression
For gzip compression:
[*tar -pvczf OUTPUT.tar.gz](<http://snipplr.com/view/7144/>) INPUT*
Where:
- OUTPUT: Name of the output file (it can be a path)
- INPUT: Name of the input directory (it can be a path)