想知道命令中的-j选项是什么意思zip.我找到了如下解释:
-j
Store just the name of a saved file (junk the path), and do not store directory names. By default, zip will store the full path (relative to the current path).
Run Code Online (Sandbox Code Playgroud)
但不太确定它究竟是什么意思?任何人都可以使用以下命令作为示例解释它吗?
C:\programs\zip -j myzipfile file1 file2 file3
Run Code Online (Sandbox Code Playgroud)
谢谢.
通过一个不同的例子,这将更有意义:
C:\programs\zip myzipfile a/file1 b/file2 c/file3
Run Code Online (Sandbox Code Playgroud)
通常这会导致包含三个"子目录"的zip:
a/
+ file1
b/
+ file2
c/
+ file3
Run Code Online (Sandbox Code Playgroud)
使用-j,您将得到:
./
+ file1
+ file2
+ file3
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4400 次 |
| 最近记录: |