Files
oam/knowledge base/zip.md
2023-07-09 21:35:14 +02:00

31 lines
526 B
Markdown

# Zip
## Table of contents <!-- omit in toc -->
1. [TL;DR](#tldr)
1. [Further readings](#further-readings)
## TL;DR
```sh
# recursively compress everything in the current directory to an archive named 'foo.zip'
zip -r foo .
# recursively compress two folders and a file to an archive named 'bar.zip'
zip -r bar folder1 folder2 file.txt
# list all files in the archive 'foo.zip' with info
unzip -Zl foo.zip
```
## Further readings
- [cheat.sh]
<!--
References
-->
<!-- Others -->
[cheat.sh]: https://cheat.sh/zip