Files
oam/knowledge base/zip.md
2022-04-17 23:39:02 +02:00

21 lines
385 B
Markdown

# 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