Added zip notes to the knowledge base

This commit is contained in:
Michele Cereda
2022-04-17 23:39:02 +02:00
parent 2e5e61a254
commit 4fd2c0f3fb

20
knowledge base/zip.md Normal file
View File

@@ -0,0 +1,20 @@
# Zip
## TL;DR
```shell
# 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]
[cheat.sh]: https://cheat.sh/zip