Zip
壓縮 -rv/s 壓縮 -R
-r
指揮和指揮-R
有什麼區別。zip
顯然,我已經用Google搜尋過了。
另外,我已經提到了這個以尋找差異,但沒有得到澄清。
社區中的任何人都可以幫助我嗎?
-r --recurse-paths Travel the directory structure recursively -R --recurse-patterns Travel the directory structure recursively starting at the current directory
鬆散地說,
zip -r
當您想要壓縮特定目錄下的文件時使用,以及zip -R
當您想要壓縮特定目錄下的文件並且這些文件與-R
標誌後定義的模式匹配時,您可以在該頁面中提供的範例中看到. 此外,-R
預設情況下從目前目錄啟動。例子:
zip -r foo foo1 foo2 First zips up foo1 and then foo2, going down each directory. zip -R foo "*.c" In this case, all the files matching *.c in the tree starting at the current directory are stored into a zip archive named foo.zip. Note that *.c will match file.c, a/file.c and a/b/.c. More than one pattern can be listed as separate arguments.