From 59accc64f7d3291d4eecff16ea4858030b224a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 13 Jun 2015 09:40:39 +0200 Subject: [PATCH] add zip/unzip --- cheat/cheatsheets/unzip | 8 ++++++++ cheat/cheatsheets/zip | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 cheat/cheatsheets/unzip create mode 100644 cheat/cheatsheets/zip diff --git a/cheat/cheatsheets/unzip b/cheat/cheatsheets/unzip new file mode 100644 index 0000000..6d8a792 --- /dev/null +++ b/cheat/cheatsheets/unzip @@ -0,0 +1,8 @@ +# Extract archive +unzip archive.zip + +# Test integrity of archive +unzip -tq archive.zip + +# List files and directories in a file +unzip -l archive.zip diff --git a/cheat/cheatsheets/zip b/cheat/cheatsheets/zip new file mode 100644 index 0000000..ad22773 --- /dev/null +++ b/cheat/cheatsheets/zip @@ -0,0 +1,5 @@ +# Create zip file +zip archive.zip file1 directory/ + +# To list, test and extract zip archives, see unzip +cheat unzip