Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
student:zip:creating [2022/07/11 16:39] bernstdhstudent:zip:creating [2025/01/26 10:47] (current) bernstdh
Line 1: Line 1:
- 
  
 ===== Creating a .zip File ===== ===== Creating a .zip File =====
Line 48: Line 47:
   - Click on the first file or directory/folder to select it.   - Click on the first file or directory/folder to select it.
   - Command-click on any other files or directories/folders to select them.   - Command-click on any other files or directories/folders to select them.
-  - Right-click on one of the selected files and pull down to <key>Compress ... Items</key>.+  - Right-click (i.e., Ctrl-click) on one of the selected files and pull down to <key>Compress ... Items</key>.
  
 To create a ''%%.zip%%'' file from the command shell, you can use the following command: To create a ''%%.zip%%'' file from the command shell, you can use the following command:
Line 57: Line 56:
  
 |    jar -cvf //archive//.zip //file// [//file//]...     | |    jar -cvf //archive//.zip //file// [//file//]...     |
 +
 +Note that if you use the GUI-based approach, the resulting ''%%.zip%%'' file will contain OSX-specific files (like ''%%.DS_STORE%%'') and directories (like ''%%__MACOSX%%'') that can cause problems in some situations. You can exclude files when working from the command line using the ''%%-x%%'' option. For example:
 +
 +<code>
 +zip -r dir.zip . -x .* -x __MACOSX
 +</code>
 +
 +will create a ''%%dir.zip%%'' that contains all of the directories below the current directory, but will exclude all files that start with a ''%%.%%'' and the ''%%__MACOSX%%'' directory.