Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
student:zip:creating [2018/08/20 11:29] – bernstdh | student:zip:creating [2025/01/26 10:47] (current) – bernstdh | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
===== Creating a .zip File ===== | ===== Creating a .zip File ===== | ||
Line 9: | Line 8: | ||
To create a '' | To create a '' | ||
- | |||
- Navigate to the appropriate directory/ | - Navigate to the appropriate directory/ | ||
- | - Click on the first file to select it. | + | - Click on the first file or directory/ |
- | - Control-click on any other files to select them. | + | - Control-click on any other files or directories/ |
- Right-click on one of the selected files and pull down to < | - Right-click on one of the selected files and pull down to < | ||
- Enter a filename (and location). | - Enter a filename (and location). | ||
Line 21: | Line 19: | ||
To create a '' | To create a '' | ||
- | | zip // | ||
+ | | zip // | ||
==== Using MS Windows ==== | ==== Using MS Windows ==== | ||
Line 31: | Line 29: | ||
- Navigate to the appropriate directory/ | - Navigate to the appropriate directory/ | ||
- | - Click on the first file to select it. | + | - Click on the first file to or directory/ |
- | - Control-click on any other files to select them. | + | - Control-click on any other files or directories/ |
- Right-click on one of the selected files and pull down to < | - Right-click on one of the selected files and pull down to < | ||
+ | |||
If the Java Development Kit is installed and in your PATH, you can also create a '' | If the Java Development Kit is installed and in your PATH, you can also create a '' | ||
- | | + | | jar -cvf // |
Line 46: | Line 45: | ||
- Navigate to the appropriate folder. | - Navigate to the appropriate folder. | ||
- | - Click on the first file to select it. | + | - Click on the first file or directory/ |
- | - Command-click on any other files to select them. | + | - Command-click on any other files or directories/ |
- | - Right-click on one of the selected files and pull down to < | + | - Right-click |
To create a '' | To create a '' | ||
- | | + | | zip // |
If the Java Development Kit is installed and in your PATH, you can also create a '' | If the Java Development Kit is installed and in your PATH, you can also create a '' | ||
- | | + | | jar -cvf // |
+ | |||
+ | Note that if you use the GUI-based approach, the resulting '' | ||
+ | |||
+ | < | ||
+ | zip -r dir.zip . -x .* -x __MACOSX | ||
+ | </ | ||
+ | |||
+ | will create a '' | ||