Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
student:zip:creating [2022/08/29 11:30] bernstdhstudent:zip:creating [2022/08/29 11:31] bernstdh
Line 60: Line 60:
 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: 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:
  
-|   zip -r dir.zip . -x ".*" -x "__MACOSX" |+<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. 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.