From fa334abdaeeaed4321d553721271e3a395ececa5 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 1 Dec 2024 12:42:18 -0800 Subject: [PATCH] First commit --- .gitignore | 1 + cli/zip.md | 29 +++++++++++++++++++++++++++++ readme.md | 4 ++++ 3 files changed, 34 insertions(+) create mode 100644 .gitignore create mode 100755 cli/zip.md create mode 100644 readme.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..63123fb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_store diff --git a/cli/zip.md b/cli/zip.md new file mode 100755 index 0000000..2295300 --- /dev/null +++ b/cli/zip.md @@ -0,0 +1,29 @@ + +The basic syntax for the `zip` command is: +```bash +zip [options] zipfile files/directories +``` + +Common options include: +- `-r`: Recursively include files in directories +- `-q`: Quiet mode (less output) +- `-v`: Verbose mode +- `-u`: Update existing entries if newer +- `-9`: Maximum compression +- `-0`: Store files only, no compression +- `-e`: Encrypt the zipfile with a password + +Some common examples: +```bash +# Create a zip archive of multiple files +zip archive.zip file1.txt file2.txt + +# Create a zip archive of a directory and all its contents +zip -r archive.zip directory/ + +# Create an encrypted zip file +zip -e secure.zip confidential.txt + +# Add/update files in an existing zip +zip -u archive.zip newfile.txt +``` \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..d4956f7 --- /dev/null +++ b/readme.md @@ -0,0 +1,4 @@ +# Physical Mind Palace + +## Command Line Tools +- [ZIP Commands](cli/zip.md) \ No newline at end of file