mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Added zip notes to the knowledge base
This commit is contained in:
20
knowledge base/zip.md
Normal file
20
knowledge base/zip.md
Normal 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
|
||||
Reference in New Issue
Block a user